Google登录认证
最近在做海外市场的应用,接入Google登录认证。
- 客户端接入:get token(client): https://stackoverflow.com/questions/37107847/how-to-get-google-oauth-2-0-access-token-directly-using-curl-without-using-goo
- 服务端验证:verify token(server): https://stackoverflow.com/questions/359472/how-can-i-verify-a-google-authentication-api-access-token
|
|
PS: Android 接入:https://firebase.google.com/docs/auth/android/manage-users?hl=zh-cn
返回字段含义:https://developers.google.com/identity/protocols/oauth2/openid-connect
PS:返回值中的sub是唯一的,长度最大可以达到255字符