Auth0 Universal Logout Behavior With Token Vault Federated Refresh Tokens
Last Updated:
Overview
This article details whether an Auth0 Universal Logout request revokes federated provider refresh tokens stored in the Token Vault. By default, Auth0 logout functionality clears the Auth0 session but does not invalidate upstream refresh tokens or delete the connected account used with the Token Vault. Administrators must use Online Refresh Tokens, the Revocation API, or the Auth0 Management API to explicitly revoke tokens or delete connected accounts.
Applies To
- Auth0
- Token Vault
- Universal Logout
- Refresh Tokens
Solution
Does Universal Logout clear the Token Vault?
A Universal Logout (Global Token Revocation) request does not revoke, invalidate, or delete the federated provider refresh tokens stored in the Auth0 Token Vault. The tokens obtained from external Identity Providers (IdPs) remain untouched and securely stored in the user profile. Auth0 does not reach out to the upstream IdP to revoke them, nor does Auth0 wipe them from the vault.
Standard Auth0-Issued Refresh Tokens Do Not Expire Upon Logout
Standard refresh tokens (rotational or non-rotating) do not automatically expire upon a standard logout. A standard logout typically only clears the Auth0 session. To achieve automatic revocation on logout, use Online Refresh Tokens, which are specifically bound to the user session and are revoked automatically upon logout. If regular refresh tokens are used, explicitly revoke them using the Revocation API.
Review the following resources to configure online refresh tokens or revoke standard refresh tokens.
Federated Logouts May Cause the Upstream Identity Provider to Revoke Tokens
If a Federated Logout is performed, the user session on the upstream IdP is cleared. The specific IdP might choose to revoke its refresh tokens for that user. Test the flow to ensure the upstream IdP behaves as expected during a federated logout.
Review the following resource to configure federated logouts.
How is a Token Vault connection deleted?
If an incident involves the compromise of the third-party account itself, explicitly drop the connection from the vault using the Auth0 Management API.
Review the following resource to delete a connected account using the Auth0 Management API.