如何强制OAuth对话框重新提示用户权限(即使已授予) [英] how to force OAuth dialog to re-prompt the user for permissions even if already given
问题描述
如果用户先前已批准访问该应用程序并提供了所有权限,则Facebook OAuth对话框会在没有提示的情况下重定向回提供的redirect_uri ...
我想覆盖该行为,并强制对话框再次询问用户权限...
想知道能否做到这一点,因为文档没有提供关于这样做是否可行的帮助.
我知道这是一篇旧文章,但是我偶然发现了它,并且因为我在其他地方找到了正确答案,所以我想将其发布在这里. /p>
您可以发送auth_type=reauthorize
.
AFAIK,auth_type
具有以下选项:
* reauthorize
始终具有权限
* rerequest
用于拒绝/撤销权限
* reauthenticate
始终以用户身份确认密码.
The facebook OAuth dialog redirects back to the provided redirect_uri without prompt if the user has previously approved access to the application and provided all permissions ...
I want to overwrite that behavior and force the dialog to ask the user again for permissions ...
wonder if this can be done, since the documentation provide no help on whether this is doable or not.
I know this is an old post, but I just came across it and since I found the correct answer elsewhere, I thought I'd post it here.
You can send the auth_type=reauthorize
.
AFAIK, auth_type
has the following options:
* reauthorize
always has for permissions
* rerequest
for declined/revoked permissions
* reauthenticate
always as user to confirm password.
这篇关于如何强制OAuth对话框重新提示用户权限(即使已授予)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!