When users try to access a Single-Page Application (SPA) after authenticating with Okta, they might see the following error:
AuthSdkError: The issuer [DOMAIN] does not match [CUSTOM DOMAIN]
This happens when the application expects a specific issuer URL, but Okta provides a different one during the authentication process.
- OpenID Connect(OIDC) application
- Single Page Application
This error occurs due to a mismatch between the issuer URL that the application expects and the issuer URL provided by Okta during the authentication flow.
The solution depends on the authorization server used.
Org Authorization Server
-
Log in to the Okta Admin Console.
-
Go to Applications > Applications tab and select the configured application.
-
Navigate to the Sign on tab.
-
Find the Issuer setting.
-
Change the Issuer setting from the static Okta URL to Dynamic (based on request domain).
6. Save the changes.
Custom Authorization Server
-
Log in to the Okta Admin Console.
-
Go to Security > API > Authorization Servers tab and select the authorization server that the application uses.
-
Navigate to the Settings tab.
-
Find the Issuer setting.
-
Change the Issuer setting from the static Okta URL to Dynamic (based on request domain).
- Save the changes.
