Auth0 Home Blog Docs

Connection based logout

lock

#1

In our software, we have users that connect via multiple types of connections which include samlp and auth0 database connections. We have added the federated flag to logout and that works for our SSO users, but for database connections they are redirected to a white page with OK printed on it. How can we redirect our database connections back to the login page while NOT redirecting our samlp users?

To reiterate, we would like to have users of the database connection be logged out and redirected to the login page while users of the SSO connection will be logged out and redirected to their IdP’s sign out URL.

thanks


#2

@jordan.eliastam auth0 doesn’t have any native functionality to do logical based redirects when logging out. Instead this would be up to your applications to make the decision. Using rules you could add a claim that showed how the user authenticated. Then track this as part of each application. From there your application would make the decision on where to redirect once logged out. This seems rather complex, but it is the only strategy I can think of to solve this problem.


#3

Thank you @sgmeyer. I was afraid that was going to be the solution!