Hi Kyle,
I hope you are doing well.
IdP-Initiated SSO is when authentication starts from the Identity Provider rather than your application. Users access the IdP (like Okta or Azure AD), select your app, and the IdP sends them directly to your application with authentication.
Key Setup Steps:
1.
Configure a Conditional Flow - Add an if/else branch in your Descope login flow to detect IdP-initiated requests. If IdP-initiated, automatically log the user in; otherwise, show the standard login screen.
2.
Set Post Authentication Redirect URL - This URL must point to a page that handles the IdP-initiated condition. Configure it at:
◦ Project level in
SSO Auth Method settings
◦ Tenant level in the tenant's SSO configuration
3.
Use the IdP-Initiated URL - Every SAML application has an IdP-initiated SSO URL like:
https://api.descope.com/v1/auth/saml/idp/initiate?app=app-id
With SDKs:
Your redirect URL should capture the
code
parameter from the URL, then exchange the SAML code via the Descope SDK to complete authentication.
Refer docs:
https://docs.descope.com/sso/idp-initiated
https://docs.descope.com/identity-federation/applications/saml-apps