<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Okta SAML RelayState Redirects to /app/UserHome Instead of Intended URL

Single Sign-On
Okta Classic Engine
Okta Identity Engine

Overview

When configuring a Secure Assertion Markup Language (SAML) RelayState, Okta incorrectly redirects users to https://<OktaOrg>/app/UserHome instead of the intended URL because the Okta configuration lacks the URL as a Trusted Origins Redirect. Add the URL as a Trusted Origins Redirect in the Okta Admin Console to resolve the redirection failure.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Secure Assertion Markup Language (SAML) RelayState
  • Trusted Origins Redirect
  • Single Sign-On (SSO)

Cause

The Okta configuration does not include the URL as a Trusted Origins Redirect. This missing configuration causes the SAML RelayState to redirect incorrectly.

Solution

How is the URL configured as a Trusted Origins Redirect?

Navigate to the Trusted Origins settings in the Okta Admin Console and add the website's base URL as a redirect type.

  1. Open the Okta Admin Console.
  2. Go to Security > API > Trusted Origins.
  3. Select Add origin.

API  

  1. Enter the base URL of the website from which Okta should allow cross-origin requests.
  2. Select Redirect as the Type.

Add Origin  

  1. Select Save.

 

Related References

Loading
Okta SAML RelayState Redirects to /app/UserHome Instead of Intended URL | Okta Support