Howdy! I am hoping to get some clarification for i...
# ask-a-descoper
i
Howdy! I am hoping to get some clarification for integrating the SAML config flow into our react app. The Sign-Up-Or-In flow is a breeze to prototype with OOTB, but having trouble getting the saml-config to do the same. I have the flow activated and am using the flowId, tenant, and redirectUrl props in the Descope func component, but it seems to fail from the jump. Any obvious things I am missing/misunderstanding about integrating this flow?
a
Hi, you need to make sure the flow is rendered only after the user is logged in and the user has the “Tenant Admin” role. (or a role with the “SSO Admin” permission.)
i
Will do. Thanks, Doron!
@ancient-motorcycle-2291 Is it possible to have the sign-in flow be combined with the saml-config flow? For instance, new tenant is logged in and if they do not have SSO configured they are prompted to continue onto the the saml-config flow? Or does it have to be two separate flows?
a
Good use case. You can do that by taking/duplicating the saml-config flow, and add screens and steps for login before the first step of the saml-config.
i
Awesome, thanks!
a
But pay attention that admins might want to setup saml later on, so it should be also in a settings page in your application.
👍 1
So think if you want to enforce them to do that at the beginning or tell them they can do that later. I’m not familiar with your exact use case so can’t really tell.
i
I appreciate the guidance and will definitely take it going forward with our integration!
👍 1