Google's Oauth for Installed apps vs. Oauth for Web Apps

人盡茶涼 提交于 2019-12-05 09:22:43

The main difference between OAuth for Web Apps and OAuth for Installed Apps (e.g. "anonymous"/"anonymous" as your consumer key/secret), is the approval page.

For installed apps, there is no way for Google to verify the identity of the application so a yellow warning box is shown to the user saying so.

For web apps, there's an actual URL (of the app) that can be verified. Hence, no ugly warning box is presented to the user.

The only thing you need to identify yourself when doing an OAuth call is the signature which is a HMAC-SHA1 string signed with your consumer secret. There's no relation with any domain whatsoever.

The only thing you need to keep reasonably safe is the consumer secret. I don't quite get what you mean by "anonymous" though...

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