What is the easiest method to read the userid inside the AppServer class procedure, when user has logged in using basic oerealm?
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.