Skip to content

Troubleshooting sign-in issues

"Access blocked: Authorization Error"

Symptom: Signing in to IAP Desktop fails with the error message "Access blocked: Authorization Error" and an error code admin_policy_enforced.

When you sign in to IAP Desktop, the application requests your permission to access Google Cloud on your behalf. IAP Desktop needs this permission so that it can list and connect to your VM instances. After you've signed in, you therefore typically see a consent screen that looks similar to the following:

Consent screen

If instead, you see following error message, then your Cloud Identity or Workspace administrator has configured a policy that restricts applications like IAP Desktop from requesting your permission to access Google Cloud resources.

Access blocked: Authorization Error (Error 400: admin_policy_enforced)

As a Cloud Identity or Workspace administrator, you can fix this error by allow-listing IAP Desktop:

  1. Open the Admin Console and go to Security > API Controls

    Open API Controls

  2. Select Manage third-party app access.

  3. Click Add app > OAuth App Name Or Client ID

  4. On the App page, paste the following OAuth client ID into the search field and click Search.

    This client ID uniquely identifies IAP Desktop.

  5. On the OAuth client IDs page, select the client ID and click Search.

  6. On the Scope page, chose whether you want to allow all users in your organization to use IAP Desktop or only users in a specific organizational unit. Then click Continue.

  7. On the Access to Google Data page, unblock IAP Desktop:


    Select one of the following options:

    • Limited (Recommended): This setting restores the default behavior for IAP Desktop users: After signing in, users see the consent screen and can grant their permission for IAP Desktop to access their Google Cloud resources.
    • Trusted: This setting has a similar effect as Limited, but also enables a simplified sign-in experience: Users see a reduced consent screen and can grant permission in a single click.

      Simplified consent screen

      Optionally, this setting also lets you disable reauthentication for IAP Desktop.

  8. On the Review page, confiirm your choice of settings and click Finish.

"This site can't provide a secure connection"

Symptom: After completing the Google sign-in process, Chrome shows an error page:

This site can't provide a secure connection
localhost sent an invalid response

Try running Windows Network diagnostics.


This error indicates an HTTP Strict Transport Security (HSTS) issue.

You might have previously ran a web server on your local computer that instructed Chrome to only accept HTTPS connections from localhost by setting an Strict-Transport-Security header. This setting now prevents Chrome from passing the sign-in result back to IAP Desktop over HTTP.

You can fix this error by doing the following:

  1. In Chrome, navigate to chrome://net-internals/#hsts
  2. Under Delete domain security policies, enter localhost and click Delete.

Now try signing in again:

  1. On the IAP Desktop sign-in screen, click Cancel sign-in.
  2. Click Sign-in to start a new sign-in attempt.