|Applies To||ClearTrust Authorization Server 5.5.3|
|Issue||How to generate a Cookie from the Runtime API token and redirect to a URL|
It is possible to use the ClearTrust Java Runtime API to authenticate and authorize a user. The application then can generate a URL that will allow the authorized user to SSO (Single-Sign-On) with a website that is protected with ClearTrust.
The token generated by the ClearTrust runtime API has to be set in the user?s browser as the Access Manager cookie for the website. It must be URL encoded. The name of the Cookie to set by default to CTSESSION. (This is found in the webagent.conf file paramater cleartrust.agent.cookie_name=CTSESSION)The following is an example of code to URL encode the token an set as a cookie.
if ( token != null )
Then perform some kind of redirect:
|Legacy Article ID||a38256|