Google login API: force to type password?

非 Y 不嫁゛ 提交于 2020-07-16 04:15:34

问题


I'm using several social providers on my site, including Google. I would like to ask for password to Google account each time user requests one of my actions. This is for security reasons.

With Facebook, we can send auth_type=reauthenticate parameter. Is there something like this in Google API?

I'm not looking for refreshing tokens, I need to make sure user types his password at any state: whether already authenticated or not.


回答1:


I read your posts and I can relate to your frustration on this matter (including some of poor responses inline above).

You want to be able to prompt users to reauthenticate with Google in order to prove that the user behind the computer is indeed the account holder. Having required similar functionality myself, I've concluded that they do not implement it. This creates a problem of trust for an application that relies on a Google login for access, but also provides some destructive functionality which should require a reaffirmation of the identity of the user. Wish I had better news for you.

Having implemented this feature with Facebook's API, I was certain Google would provide similar since it's so essential to security, however they don't.



来源:https://stackoverflow.com/questions/32433378/google-login-api-force-to-type-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!