Troubleshoot the Auth0 Deploy CLI Tool to Resolve Google Apps Connection Errors

Overview

Auth0 generates warning log entries after a Google Apps connection is recreated using the Deploy Command Line Interface (CLI) tool. This occurs when the consent flow is not completed prior to exporting the connection, resulting in missing token information. Completing the consent flow before exporting the connection resolves the issue.

Symptoms include the following warning messages in the logs:

 

Unable to get extended attributes: unauthorized

 

Unable to get groups: unauthorized

 

Applies To

  • Auth0
  • Deploy Command Line Interface (CLI) Tool
  • Google Apps Connections

Cause

Auth0 generates warning log entries when a Google Apps connection is recreated because the connection options object lacks the necessary token information. This happens if the Google Apps administrator does not complete the consent flow before the connection information is exported using the Deploy CLI tool.

Solution

How are Google Apps connection warning log entries resolved in Auth0?

Complete the consent flow before exporting the connection information using the Deploy CLI tool to ensure the necessary tokens are included in the exported script.

  1. Navigate to the Google Apps connection in the Auth0 Dashboard.
  2. Select the Setup instructions button next to the connection and follow the link to complete the consent flow as a Google Apps administrator.
  3. Export the connection information using the Deploy CLI tool after the consent flow is complete.

NOTE: Tokens stored in the connection options object are sensitive and must be handled securely.

Recommended content