Google OAuth API to get user's email address?

前端 未结 11 850
栀梦
栀梦 2020-11-29 01:38

I am playing with Google\'s OAuth 2.0 Playground using my own personal Google account, but I cannot seem to recover my Gmail address using the playground.

The scope

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 01:46

    Please see my answer here to the identical issue: how to get email after using google OAuth2 in C#?

    • In your scopes variable. Use the value "email" not the full https address. Scope keywords in the web link are separated by spaces. I solve your issue with scopes written as: profile email openid.

提交回复
热议问题