该应用程序不断要求获得“具有离线访问权限"的许可,为什么呢? [英] The App keeps asking for permission to "Have offline access", why?

查看:71
本文介绍了该应用程序不断要求获得“具有离线访问权限"的许可,为什么呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用oAuth2授权应用并获得请求范围的权限后,每次尝试使用Google oAuth2登录时,我仍然会看到一个屏幕,询问是否向具有离线访问权限授予该应用权限.一旦我授予它拥有的权限,那该不该再次出现吗?

After having authorized the app with oAuth2 and acquiring permissions for requested scopes, I still get a screen asking if I grant the app permission to Have offline access, each time I try to login with Google oAuth2. Isn't it something that shouldn't appear again, once I grant it permission to have it?

推荐答案

是否使用approval_prompt参数?如果您已经有刷新令牌,请尝试不要再要求脱机访问.即使用户再次登录,它也应保持有效,而无需请求脱机访问.

Do you use the approval_prompt parameter? Try not to ask for offline access again if you already have an refresh token. It should stay valid even if the user logs in again, without requesting offline access.

有关此问题的参考信息,请此处.

A reference about this can be found here.

这篇关于该应用程序不断要求获得“具有离线访问权限"的许可,为什么呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆