Redirect to custom logout page after federated logout

A user logged-in to Auth0 using their Azure Active Directory account when using federated log out should be taken to a custom logout page with a query string parameter for a button click action on the logout page. Clicking the button should take them to that URL.

The current implementation uses the federated query string parameter, followed by a simplified returnTo without any query string parameters:

https://<tenant_name>.eu.auth0.com/oidc/logout?federated&returnTo=https%3A%2F%2Fwww.google.com

It performs the Auth0 logout and then hands it over to the Idp which finishes the process at location:
https://login.microsoftonline.com/<azure_ad>.onmicrosoft.com/oauth2/v2.0/logoutsession

Auth0 documentation used to implement the federated logout:
Redirect Users with Alternative Logout (auth0.com)
Use the OIDC Endpoint to Log Users Out of Auth0

None of them helped produce the desired result. Thank you.

Referring to Use the OIDC Endpoint to Log Users Out of Auth0 documentation and using the post_logout_redirect_uri parameter helped achieve the redirect.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.