Handling IdP-Initiated SSO Redirection After Session Timeout
Background
- We have integrated with a partner Identity Provider (IdP) that only supports IdP-initiated SSO
- Okta is our Service Provider (SP) and supports IdP-initiated SSO
- Users currently access SP applications without seeing Okta login pages
Current Setup
- SP applications manage their own sessions (with Okta session as primary)
- IdP-init SSO URL is available in:
- Incoming SAML assertion
- Stored in to Okta user profile
Challenge
When both Okta and SP application sessions timeout, we need to handle user redirection gracefully.
Current Flow
- User attempts to access SP application (after a coffee break)
- SP detects no active session
- User is redirected to Okta sign-in page
- User enters username
- Process breaks here as IdP doesn’t support SP-initiated SSO
Question
Is there a way to implement graceful redirection to the IdP-init URL when both sessions have expired? Looking for best practices or recommended approaches to handle this scenario.
Additional Context
- Partner IdP does not support SP-initiated SSO
- Need to maintain seamless user experience
Thanks!