Get Rollbase user from JSDO

Posted by Pieter van Ginkel on 03-Nov-2014 04:21

How can I find out which Rollbase user is connecting to OpenEdge using JSDO?

Posted by Ranjana sinha on 03-Nov-2014 04:47

Hi Peter,

For private cloud If the authentication type selected is OpenEdge authentication then ClientPrincipal info is provided in the header with key as "X-OE-CLIENT-CONTEXT-ID" .

If the authentication type is not OpenEdge then we send following info in the headers 

RB_HOST_NAME

RB_CUST_ID

RB_USER_ID

RB_ROLE_NAME

RB_USER_LOCALE

(This feature is available from 3.0 release)

If you want to know the user, you can enable the ClientPrincipal filter in the REST Adapter and know about the user in your ABL code with something like this:

====

define variable hCP     as handle no-undo.

hCP = session:current-request-info:GetClientPrincipal().

message hCP:qualified-user-id.

====

Let me know if this answers your question.

Regards,

Ranjana Sinha

All Replies

Posted by Ranjana sinha on 03-Nov-2014 04:47

Hi Peter,

For private cloud If the authentication type selected is OpenEdge authentication then ClientPrincipal info is provided in the header with key as "X-OE-CLIENT-CONTEXT-ID" .

If the authentication type is not OpenEdge then we send following info in the headers 

RB_HOST_NAME

RB_CUST_ID

RB_USER_ID

RB_ROLE_NAME

RB_USER_LOCALE

(This feature is available from 3.0 release)

If you want to know the user, you can enable the ClientPrincipal filter in the REST Adapter and know about the user in your ABL code with something like this:

====

define variable hCP     as handle no-undo.

hCP = session:current-request-info:GetClientPrincipal().

message hCP:qualified-user-id.

====

Let me know if this answers your question.

Regards,

Ranjana Sinha

Posted by Pieter van Ginkel on 04-Nov-2014 04:47

Terrific, thank you.

This thread is closed