Extracting JWT token from SAML Response and making it available

Gopal Satapathy, modified 7 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts

Liferay Version- Liferay Portal Enterprise Edition 6.2.10 EE GA1 (Newton / Build 6210 / November 1, 2013) 
Running on Tomcat

Using already Liferay SAML 2.0 for sso.

 

Now we have the requirement that from the incoming SAML response we need to extract another  JWT token which will be sent in a parameter and  need to make this token available for other applications. Any pointer on  how to approach for this would be of great help.

Already tried with expando:userJwtToken=jwtToken, but this does not work.

Thanks

thumbnail
David H Nebinger, modified 7 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts

There is nothing OOTB that will do this for you, it is going to be a complete custom effort.  You'd have to muck around in the bowels of SAML to grab the value and inject as I guess a cookie to push back to the browser.