I have currently created user oauth login using google+.
我目前使用google +创建了用户oauth登录。
<button class="g-signin"
data-scope="https://www.googleapis.com/auth/plus.login"
data-requestvisibleactions="http://schemas.google.com/AddActivity"
data-clientId="xxxx_client_id"
data-callback="onSignInCallback"
data-theme="dark"
data-cookiepolicy="single_host_origin">
</button>
Also gave an link for Disconnecting Google account from the app
还提供了从应用中断开Google帐户的链接
By clicking the Disconnect button, i am revoking by this link:
单击“断开连接”按钮,我将通过以下链接撤消:
https://accounts.google.com/o/oauth2/revoke?token=xxxxxxxxxxxx
By the access token generated, i am trying to give the access of analytics
通过生成的访问令牌,我试图提供分析访问权限
The user had full permission to access analytics as well.
用户也拥有访问分析的完全权限。
But after clicking the Disconnect Button. User got disconnected from the app and logged out. But when i try to login back, it asks for the necessary permissions to access and he is able to login. But not able to authorize the app.
但是在单击“断开连接”按钮后。用户与应用程序断开连接并退出。但是当我尝试登录时,它会要求访问所需的权限,并且他能够登录。但无法授权该应用。
I also cross checked with:
我还交叉检查:
https://accounts.google.com/IssuedAuthSubTokens
- MyApp still exists their and not removed because of disconnect.
MyApp仍然存在,因为断开连接而未被删除。
- Also checked in google analytics user management, the user still exists for MyApp.
同样在Google Analytics分析用户管理中检查,用户仍然存在于MyApp。
I am not passing anything related to app for disconnecting, just deleting the access_token issued. But still how it is been disconnected from the app.
我没有传递与应用程序相关的任何内容以断开连接,只是删除发出的access_token。但仍然是如何与应用程序断开连接。
May i know where am i doing wrong?
我可以知道我在哪里做错了吗?
1 个解决方案
#1
Passing additional parameter of https://www.googleapis.com/auth/analytics.readonly to the google plus button as an additional delimeter after referring to this link https://developers.google.com/+/web/signin/reference
在引用此链接后,将https://www.googleapis.com/auth/analytics.readonly的其他参数作为附加分隔符传递给google plus按钮https://developers.google.com/+/web/signin/reference
<button class="g-signin"
data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/analytics.readonly"
data-requestvisibleactions="http://schemas.google.com/AddActivity"
data-clientId="xxxx_client_id"
data-callback="onSignInCallback"
data-theme="dark"
data-cookiepolicy="single_host_origin">
</button>
#1
Passing additional parameter of https://www.googleapis.com/auth/analytics.readonly to the google plus button as an additional delimeter after referring to this link https://developers.google.com/+/web/signin/reference
在引用此链接后,将https://www.googleapis.com/auth/analytics.readonly的其他参数作为附加分隔符传递给google plus按钮https://developers.google.com/+/web/signin/reference
<button class="g-signin"
data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/analytics.readonly"
data-requestvisibleactions="http://schemas.google.com/AddActivity"
data-clientId="xxxx_client_id"
data-callback="onSignInCallback"
data-theme="dark"
data-cookiepolicy="single_host_origin">
</button>