<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
IdP Redirect with SAML Deep Link not Working - Error "404 Page Not Found"
Single Sign-On
Okta Classic Engine
Okta Identity Engine
Overview

SAML deep link is unable to redirect the user to an app after successfully authenticating with a third-party IdP and returns with an error:

 404 Page Not Found.

 

Applies To
  • SAML IdP Deep Link
  • API SAML IdP Deep Link
  • Secure Assertion Markup Language (SAML)
Cause

The SAML IdP deep link  is in three parts: https://${YourOktaDomain}/sso/saml2/:idpId/app/:app-location/:appId/sso/saml?RelayState=:anyUrlEncodedValue.


Deep link returns with Error 404 Page Not Found, mostly in cases where the app location is incorrect.

Solution

Please ensure that :IdPId and the :app-location values are correct.

The app-location value can be found from the Okta Admin Dashboard > Applications > Applications > Desired App > General tab > Embed Link:
saml-idp-deep-link-okta-app-location

Example:

Example

Loading
IdP Redirect with SAML Deep Link not Working - Error "404 Page Not Found"