Getting a random error: policy_enforced on most Go

2019-01-23 09:46发布

Since yesterday (October 2nd, 2014), there seem to be random errors when trying to access apps that use OAuth 2.

There are two problems:

  1. We can't access the apps we use for our internal management.

  2. Our clients that cannot login through their Google Apps sign in.

Here are the details of the error:

Request Details

from_login=1
response_type=code
scope=email profile https://www.googleapis.com/auth/drive.file
access_type=online
redirect_uri=https://login.xero.com/SignIn/GoogleOAuthCallback
as=-5fc43****cf15779
pli=1
client_id=1061085901692-8vaq9******vuv2d2cro0eervp04j7a.apps.googleusercontent.com
authuser=0
hl=en

2条回答
冷血范
2楼-- · 2019-01-23 10:09

I caused the same problem at OpenID Connect authentication, so I had been made a query to Google Cloud Platform support.

Google updated to be not able to short name scope on Marketplace (without an announcement). Now Google are considering to re-use short name scopes. So We have to use long URL scope until Google corresponding to complete.

查看更多
再贱就再见
3楼-- · 2019-01-23 10:17

We are getting the same issue on our application. I have tested with using long names for scopes, but it did not help.

Also, it appears that the error only occurs from a Google Apps account. Regular Google account works fine.

The error does not occur for the users who have already given permission to the application.

查看更多
登录 后发表回答