Hi, I'd need some help with understanding how to c...
# ask-a-descoper
k
Hi, I'd need some help with understanding how to configure idP initiated login 🙏 Would love some help in DM to better explain our integration to see if it is possible and further configure it.
Bumping this up 🥨
r
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
k
Thanks for the comment @Rahul Rijhwani, but I'd like to get a more specific advice per our deployment as it might be a little different.
r
Can you explain your use case.
👍 1
k
DMed you the use-case