[progress Communities] [progress Openedge Abl] Forum Post: Re: Rest/pasoe Auth: Adding...

  • Thread starter Thread starter Irfan
  • Start date Start date
Status
Not open for further replies.
I

Irfan

Guest
You can do it right now in 11.6.2+ In your OERealmHybrid Class, add the attribute "Realm_ATTR_PROPERTIES" and return a JSON Object as longchar when OERealmDefs:REALM_ATTR_PROPERTIES then do: return JObj:getJsontext(). END. This should load all the custom properties and will be part of your sealing client principal. Once your CP is sealed and passed to MS-Agent, you can print those properties as below cList = hCP:list-property-names. iListSize = num-entries(cList, ","). if ( 0 < iListSize ) then do iListPos = 1 to iListSize: define variable cProp as character no-undo. define variable cVal as character no-undo. message " properties:". cProp = entry(iListPos, cList, ","). cVal = hCP:get-property(cProp). message " property:" cProp ", value:" cVal. end. (hCP is your client-principal handle).

Continue reading...
 
Status
Not open for further replies.
Back
Top