Add SAML to Authenticate to OIDC Application - Questions - Okta Developer Community
Add SAML to Authenticate to OIDC Application - Questions - Okta Developer Community Okta Developer Community Add SAML to Authenticate to OIDC Application Questions russ September 5, 2020, 1:28am 1 I have an existing web application correctly configured as an OIDC client and allowing for authentication and JIT user creation to our Okta Developer tenant via the org level sign-in widget hosted by okta using both direct Okta OIDC and Social Authentication (via Google). I'd like to add an additional authentication flow from an external customer SAML IDP through the use of IDP routing rules, though I'd still like to retain the existing OIDC client configuration for the application. Thus, the app-initiated login flow would resemble: User visits our application (httx://app.example.com) and clicks “Login” Browser calls application (httx://app.example.com/oauth2/authorization/oidc) endpoint, Application redirects to Okta authorization server endpoint with OIDC parameters User submits username email address for applicable domain for SAML IDP routing rule, and clicks Next User is redirected to external IDP with SAML request External IDP generates SAML assertion and browser relays back to Okta Okta SAML App authenticates user Okta generates OIDC code and redirects to Okta OIDC authorization server callback Finally Okta redirects user back to application (httx://app.example.com/login/oauth2/code/oidc) endpoint with code parameter Is something like this possible? Various previous posts here suggest similar configuration but it is unclear. phi1ipp September 5, 2020, 8:11pm 2 You would need to double check the OIDC flow you use in your application, but for me it worked for implicit flow, even when a target user doesn't exist in your Okta org sofather February 6, 2022, 12:21pm 3 I have the exact same scenario and I'm struggling to make it working. Any finding here please ? russ February 7, 2022, 11:08pm 4 Apologies for lack of follow up here. Okta handles more than I assumed here initially and will appropriately authenticate user and redirect them back to OIDC Application without specifically configuring the redirect. The Oauth2 flow includes enough information for Okta to handle this. We now accomplish the desired functionality by: Add a unique Saml2 IDP for partner using temporary values for Issuer IdP Issuer URI, IdP SSO URL, IdP Certificate. Provide the generated ACS URL, and Audience URI to partner for use in adding a SAML App to their IdP. Request the partner to provide back their IdP Issuer URI, IdP SSO URL, IdP Certificate and replacing temporary values from step 1. Add a routing rule which points to this new identity provider given pattern matching for partner username. This is commonly email domain. This of course requires that either the username exists and is given access to the OIDC application, or is allowed JIT in IdP configuration in a way which would automatically give them access (Group Assignment presumably) sofather February 8, 2022, 8:40am 5 russ: omatically give the Thanks for your reply. I already configured this use case. But when I tried it on my React application it fails. here's my exact problem in this forum. React authentication between Okta(OIDC) as SP and another Okta(Saml2) as IDP Questions I have a react application that is currently configured with our Okta (SP) with ODIC authentication. We decided to allow another Okta Org to access our application. This new Okta is the IDP and they are using the saml2 protocol. So we managed to do the setup between the 2 Okta correctly. When we run the application that is based on Okta-sign-in-widget library self hosted widget. The application ask for the user name to identify which Okta to authenticate with, in the case of IDP users, the appl… sofather February 20, 2022, 8:45am 6 Thank you very much Russ ! Related topics Post Replies Views Activity How to setup vendor's external SAML IDP to work with our OIDC application? OAuth/OIDC 4 3352 May 7, 2021 SAML Idp initiated SSO for SPA SAML saml , typescript 1 4439 February 8, 2022 Okta as a SAML to OpenID connect bridge SAML 4 11128 February 25, 2021 Using Okta as a OpenID to SAML bridge SAML 3 5564 June 25, 2021 Single application can support both SPA and SAML? SAML saml 4 7809 October 29, 2020 Home Home Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled