[progress Communities] [progress Openedge Abl] Forum Post: Re: [kendo For Angular] How To...

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello Martin, Where do you need to know the roles? On the client or on the server? You can access the ROLES on the server by using GetClientPrincipal(). For the client, you could have an API (invoke operation) that returns the info that the client needs based on the roles, without necessarily providing the roles to the client. Here is an example of the code you would use on the AppServer: MESSAGE "DEBUG: REMOTE_USER: " poRequest:GetContextValue("REMOTE_USER"). hCP = SESSION:CURRENT-REQUEST-INFO:GetClientPrincipal() NO-ERROR. IF hCP <> ? THEN DO: MESSAGE "DEBUG: SESSION: USERID: ROLES: " hCP:USER-ID hCP:ROLES. END. Documentation: documentation.progress.com/.../index.html I hope this helps, Edsel

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