Tuesday, February 26, 2019

Land to a NetSuite page through SAML

SAML has a standard parameter called 'RelayState' that can hold the URL to go to upon successful SAML authentication. In this parameter, you can both use the absolute and relative URL of any NetSuite page. You just need to add this to the SAML initiating URL like this: &RelayState=URL

Below are the sample URLs that could demonstrate how this parameter can be used.

Sample for relative URL:
http://localhost:9080/openam/saml2/jsp/idpSSOInit.jsp?metaAlias=/idp&spEntityID=http://www.netsuite.com/sp&RelayState=/app/crm/calendar/eventlist.nl?whence=

Sample for absolute URL:
http://localhost:9080/openam/saml2/jsp/idpSSOInit.jsp?metaAlias=/idp&spEntityID=http://www.netsuite.com/sp&RelayState=https://system.netsuite.com/app/crm/calendar/eventlist.nl?whence=

Additional Resource:
http://en.wikipedia.org/wiki/SAML_2.0#SP_POST_Request.3B_IdP_POST_Response

No comments:

Post a Comment