Saml IDP is not working for multiple custom domain

  1. Vision of okta library : okta-auth-js": “^7.4.0”,
  2. We have 2 different custom domains , the saml idp is working well for 1 custom domain and not for another domain
  3. After successful login using Saml IDP , app receives redirect URI with interaction code but akta-auth-js is not giving success call back and also when we trying to get session OktaAuth.session.get() is not providing a valid session

Hello there,

My name is Akash, from Okta.

With regards to the issue that you are facing, I would like to get some additional context on the same. Could you please elaborate your use case and what exactly you are trying to achieve in detail with some examples?

When logging into Okta, a session will only be created for the Okta domain through which the user authenticated. If you have multiple domains for a single org, a user would need to complete primary authentication against each domain to have a session there.

For example, if your application makes its authorize request to https://customDomain1.example.com/oauth2/v1/authorize and then you try to call session.get() against https://customDomain2.example.com, the call will fail as there is no user session on that domain.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.