Another note on audit logs: We use the <SSO Setup ...
# ask-a-descoper
d
Another note on audit logs: We use the SSO Setup Suite to allow our customers to configure SSO for their tenants. When SSO connections are added/deleted, there's an audit log recorded, but it does not include the identity of the user who took the action. Is this a known issue?
g
David - the SSO Setup Suite is an authenticated link with the token that allows you to send it to IT teams of your customers without the need for them to have a user in your system. As such there i no real identity operating on them. However, if you want the user to be identified (authenticated with your project), you'll have to have him logged in with aa DSR cookie, and assigned to the tenant with Tenant Admin role, then go to the SSO suite with the tenant ID query param, and without the token. See here: https://docs.descope.com/auth-methods/sso/sso-setup-suite#method-2-direct-access-with-authentication
d
Hey @Gilad Shriki, I'm looking back into this. Can you explain how we'd implement authenticated access to the SSO Setup suite? Currently, our users are authenticating on our App's domain via the Descope React SDK. Additionally, we're not using Descope with a custom domain. How would we go about getting a DSR cookie for the
api.descope.com
domain. Also, when a user generates the SSO setup suite link via a flow currently, we also don't see any user info on the resulting audit logs. Is there anyway to get user info on flow logs for the user that triggered them?
g
Sure, see here how to use authentication instead of the magic link: https://docs.descope.com/auth-methods/sso/sso-setup-suite#method-2-direct-access-with-authentication It can still be api.descope.com When you generate the link with the token - it's done without authentication so no user context.
d
@Gilad Shriki That link doesn't describe how to trigger authentication on the
api.descope.com
domain, though. Just that the user needs to be authenticated to access that endpoint. How do I trigger an authentication flow to get a valid cookie on the
api.descope.com
domain?
g
Hi David, You do not need to do anything, If the user will hit the link as noted in the URL, without the token, the user will automatically be asked to login...
d
That does not appear to be the case. This is the screen I get:
g
what is the URL you tried?
d
https://api.descope.com/sso/setup/<my-project-id>?tenantId=<my-tenant-tenant-id>
g
can you please DM it to me?