Use Client-Principal from OpenEdge Authentication

Posted by SteveBos on 28-Dec-2016 16:01

We are currently using OpenEdge Authentication to get our client-principal. My question is how do we pass that client-principal along to methods exposed by our JSDO service in addition to the OpenEdge objects we are using?

 

Thanks for your help!

All Replies

Posted by Vasantha on 11-Jan-2017 01:44

Hi SteveBos,

Client Principal token (“{!#CP_TOKEN}”) can be used in an HTTP header under the header name ‘X-OE-CLIENT-CONTEXT-ID’.

Example:

var headers = {

 'X-OE-CLIENT-CONTEXT-ID' : '{!#CP_TOKEN}'

};

rbv_api.sendJSONRequest('{!ttBPMDomain1151.resourceURI#jsdo}', '', 'GET', 'application/json', '', '', headers);

Thanks

Vasantha

This thread is closed