Using SSO logon tickets in SAPUI5


When your proxy has SSO token, you should use SET-COOKIE header to pass SSO token to the client.

Example

set-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=xxxxx.sap.com

It should be passed to client browser from proxy and domain name has to be changed to the proxy as shown below:

set-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=PROXYDOMAIN.com

When next time your browser calls to the proxy, this will include session cookie in the request header like below. The proxy will read that Cookie from HTTP request header to make calls.

Cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e;

Updated on: 16-Dec-2019

216 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements