Troubleshoot Agent Identity authentication issues

This document describes how to resolve common errors when using the Agent Identity auth manager.

For instructions about configuring auth providers, see Manage Agent Identity auth providers.

Redirect URI mismatch

If you receive a redirect URI mismatch error from the third-party application during the OAuth flow, ensure that the redirect URI registered in the third-party developer portal exactly matches the URI generated by the auth manager.

To resolve this issue, find the generated redirect URI by viewing the auth provider details in the Google Cloud console or running the following gcloud command:

gcloud alpha agent-identity