Connection ID Missing From Auth0 Logout Logs

Overview

The connection ID may remain unpopulated in Auth0 logout logs during session termination. This occurs because the system retrieves the connection name from the user session, but the connection ID is not stored within the session. Including the client ID parameter in the logout request URL and ensuring an active session exists resolves the issue.

Applies To

  • Auth0 Logout
  • Logout Logs 

Cause

The system retrieves the connection name directly from the user session, but the connection ID is not stored within the session. The system looks up the connection ID using both the connection name and the application ID (client ID). If the client ID is missing from the logout URL or no active session exists in the browser when the logout request occurs, the connection ID remains empty in the logs.

Solution

How is the connection ID populated in logout events?

Ensure the logout request meets the necessary criteria to populate the connection ID in logout events.

  1. Include the client ID parameter in the Service Provider (SP) initiated logout request URL:
    https://<domain>/v2/logout?client_id=<client_id>&returnTo=<return_to_url>
  2. Verify that a valid, active session exists in the browser when the logout request is made. If the session has already expired or been cleared, the field remains blank.

 

Review the Auth0 Logout - Auth0 Docs for further details regarding the client ID parameter in the logout endpoint.

Recommended content

No recommended content found...