【发布时间】:2021-12-13 06:46:14
【问题描述】:
在我使用 .Net HttpPost 的 Google OAuth 请求中缺少 refresh_token 值。
参考:https://developers.google.com/identity/protocols/oauth2/web-server#exchange-authorization-code
我的输入 HTTP 发布请求 -
...google oauth post request details..url - (https://accounts.google.com/o/oauth2/token)...
and the postData - (client_id=<client_id>&client_secret=<client_secret_key>&grant_type=authorization_code&redirect_uri=<redirect_url>&code=<authorization_code>&access_type=offline&prompt=consent&approval_prompt=force)
注意:我有一个关于 access_token 的有效响应。但是,refresh_token 对象值带有空记录。
请帮忙。
我已经查看了这些链接 - Not receiving Google OAuth refresh token
【问题讨论】:
标签: google-api google-oauth access-token google-api-dotnet-client refresh-token