是否有特定的Google OAuth v2刷新令牌网址?

问题描述 投票:0回答:1

我创建了一个谷歌控制台项目,它提供了所有必要的凭据......

{  
   "web":{  
      "token_uri":"https://oauth2.googleapis.com/token",
      "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
      "auth_uri":"https://accounts.google.com/o/oauth2/auth",
      "client_id":"1234567890example.apps.googleusercontent.com",
      "client_secret":"1234567890abcexample",
      "project_id":"abc123example",
      "javascript_origins":[  
         "https://zapier.com"
      ]
   }
}

...除了refresh_token_url。使用提供的凭据,我可以成功设置静态OAuth2,但在初始令牌过期后它将停止工作。

我需要的只是Google的refresh_token_url(如果有的话)插件,我应该很高兴。我已经尝试在刷新URL中使用相同的/令牌URL,但它不起作用。

google-api google-oauth2
1个回答
0
投票

刷新令牌端点是令牌身份验证URL

https://accounts.google.com/o/oauth2/token

您还可以查看discovery document

https://accounts.google.com/o/oauth2/token
client_id={ClientId}.apps.googleusercontent.com&client_secret={ClientSecret}&refresh_token=1/ffYmfI0sjR54Ft9oupubLzrJhD1hZS5tWQcyAvNECCA&grant_type=refresh_token
© www.soinside.com 2019 - 2024. All rights reserved.