Hi team, need help ,is there any global configurat...
# ask-a-descoper
a
Hi team, need help ,is there any global configuration from which i can disable JIT for all the tenants present in my project , use-case: we are having social and sso as authentication method and in our system for now we are supporting one user per tenant , now if the user has done previously sign in with social and now if they are doing sso ( have disabled the option to convert existing user to sso only after successful auth) we don't want to have new user on descope side as we are maintaining single user on our side. ik descope treats sso user as separate user eventually we will also be moving to maintaining separate users on our side but for now we want to make sure that user can only do sso or social , not both and if they are doing sso by mistake given that they previously signed in on our app with social , we should be having two separate users.
g
When you say SSO - do you mean OAuth (SSO with social logins) or actual SSO/SAML for customer's IdP?
a
It's SSO (SAML)
g
So in that case - when the users switches from an email/social to SAML - the system will convert the user (not merge) for security reasons. If the user then tries to login with email/social - it will result in a new user
a
Yes creation of user is what is want to disable , by switching off JIT, is it possible to do globally as i can see there is option to disable in for a particular tenant.
g
So one thing you can do is check if the user is
ssoEnabled
and then force the user to login with SSO, and not allow any other method
a
How can we do it flow itself or do i will get this
ssoEnabled
after code exchange.
g
In the flow. A condition task with ssoEnabled condition.
a
okay got it , thanks! @Gilad Shriki
👍 1