通过 REST API 从 OAuth.io 获取刷新令牌
Getting a refresh token from OAuth.io through REST API
我正在尝试通过 Oauth.io 获取 Google 的刷新令牌,但我无法找到要将代码发送到的端点。我使用的是 C#,所以无法使用服务器端 SDK。我还查看了 Getting refresh tokens from Google with OAuth.io but that answer doesn't help me get the actual refresh token. I've looked at their server-side flow documentation which tells me I can get my refresh token at /auth/access_token but when looking at the web API documentation 我没有看到列出的端点。
我还查看了他们的示例 here,但我也没有在 API 文档中看到他们使用的端点。它也没有说明哪个 key/secret 用于该请求 - 它是为我的 OAuth.io 应用程序列出的那个,还是我的提供商的那个(在本例中为 Google) ?
如有任何帮助,我们将不胜感激。
我刚刚更新了关于 docs.oauth.io 的文档,它实际上是 /auth/access_token。
查看 node.js SDK 实现:https://github.com/oauth-io/sdk-node/blob/master/coffee/lib/authentication.coffee#L99
请求是 https://oauth.io/auth/access_token
上的 POST
并且需要 3 个参数:
code
:要与访问令牌/刷新令牌交换的代码
key
: OAuth.io public 键
secret
: OAuth.io 密钥
我正在尝试通过 Oauth.io 获取 Google 的刷新令牌,但我无法找到要将代码发送到的端点。我使用的是 C#,所以无法使用服务器端 SDK。我还查看了 Getting refresh tokens from Google with OAuth.io but that answer doesn't help me get the actual refresh token. I've looked at their server-side flow documentation which tells me I can get my refresh token at /auth/access_token but when looking at the web API documentation 我没有看到列出的端点。
我还查看了他们的示例 here,但我也没有在 API 文档中看到他们使用的端点。它也没有说明哪个 key/secret 用于该请求 - 它是为我的 OAuth.io 应用程序列出的那个,还是我的提供商的那个(在本例中为 Google) ?
如有任何帮助,我们将不胜感激。
我刚刚更新了关于 docs.oauth.io 的文档,它实际上是 /auth/access_token。
查看 node.js SDK 实现:https://github.com/oauth-io/sdk-node/blob/master/coffee/lib/authentication.coffee#L99
请求是 https://oauth.io/auth/access_token
上的 POST
并且需要 3 个参数:
code
:要与访问令牌/刷新令牌交换的代码key
: OAuth.io public 键secret
: OAuth.io 密钥