Hey, I have a question for SSO Setup Configuration...
# ask-a-descoper
i
Hey, I have a question for SSO Setup Configuration link - is there some way to have it be one-time use? I can't find any documentation or references on access control or authorization for this function.
m
looping in @Lior Eliav here
d
At the moment, you can control the expiration time only. To make it one time, you can listen to the update SSO settings event using the audit webhook and revoke the link (using the management API/SDK).
i
So I can revoke it via API?
It just doesn't exist in the UI yet?
Does it mean that anyone with this link can reconfigure the tenants sso configuration and log in to the tenant as a legitimate user?
d
yes you can revoke via API/SDK or via the Descope console.
Right.
You can also work with jwt approach, so only logged in user with a jwt can do that.
and don’t generate a link with a token.
i
what do you mean?
how does JWT come into play here?
d
Let’s say a tenant admin logged in to your application, and that user has a cookie with a session token jwt. Now you can show that user a link to the sso setup suite (without the token), once that tenant admin opens the link, the cookie with the jwt will be sent, and we will check that jwt permissions, if permitted the tenant admin will be able to setup SSO.
So that’s ensure only logged in admins can setup SSO.
You can also use the “Tenant Profile” widget and embed it in your app (you can fully customize it):