Forums, Documentation & Knowledge Base - ComponentSpace

"Unexpected Token" Error on InitiateSSO()


https://www.componentspace.com/forums/Topic12345.aspx

By DanMcD_FEI - 2/8/2023

We have a SAML Identify Provider setup and we're trying to add a new partner using IdPI. They use auth0 for their SSO and have configured it for SAML. The SSO works but has a problem on their end because their application can't redirect the request to the correct URL. They believe we can fix this by adding an additional parameter to the Assertion Consumber Service URL. However, when I add the additional parameter (&organization=fei) to the ACS, it throws an error on our end when we call the InitiateSSO() method. The error is as follows:

Message: '=' is an unexpected token. The expected token is ';'. Line 51, position 111.
...
at ComponentSpace.SAML2.SAMLIdentityProvider.InitiateSSO(HttpResponse httpResponse, String userName, IDictionary`2 attributes, String relayState, String partnerSP)
at CMSWebParts_FEI_controls_ctrl_SSO_SAML_CS.sso_idpi()

Line 51 is the entry for the SP's ACS url in our saml.config file. If we leave off the second parameter, it works fine. If we add it, we get an error. Is it not possible to add a second QueryString Parameter to the ACS url?
By ComponentSpace - 2/8/2023

You're welcome. Thanks for the update.