Userid when used basic oerealm is used ?

Posted by teppo_55 on 07-Jun-2016 06:30

What is the easiest method to read the userid inside the AppServer class procedure, when user has logged in using basic oerealm?

All Replies

Posted by Donicello Lampe on 07-Jun-2016 06:41

Please see the following KBase article: knowledgebase.progress.com/.../What-are-the-basic-steps-to-authenticate-REST-clients-against-the-OpenEdge-database-User-table

Are you looking for code similar to what is provided at the end ?

DEFINE VARIABLE hCP AS HANDLE NO-UNDO.

hCP = SESSION:CURRENT-REQUEST-INFO:GetClientPrincipal().

MESSAGE "Username: " + hCP:QUALIFIED-USER-ID.

This thread is closed