Forum Post: RE: how to get clientContextId from Rest backend in javascript client

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

egarcia

Guest
Hello, Just to clarify, to access the clientContextId, you would write "session.clientContextId" where session is your variable of type progress.data.Session or progress.data.JSDOSession. (In your post you mentioned progress.data.clientContextId which is not defined.) Since you mention that the value is null (not undefined), it looks like you are accessing the right property. The clientContextId property is set from the value in the X-CLIENT-CONTEXT-ID HTTP header (found in the HTTP response). You can use the steps in the following link to enable SSO for Web applications: documentation.progress.com/.../index.html Please notice that the documentation and the .xml file have "headername" value="X-OE-CLIENT-CONTEXT-ID". Please change it to X-CLIENT-CONTEXT-ID because that is the value that the code for the Session/JSDOSession expects. Related link: documentation.progress.com/.../index.html I hope this helps.

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