【问题标题】:WSO2 api manager - refresh token request formatWSO2 api manager - 刷新令牌请求格式
【发布时间】:2016-12-30 01:16:39
【问题描述】:

从 WSO2 api 管理器检索访问令牌后,需要使用刷新令牌发出什么请求来获取新的访问令牌?

这在任何地方都有记录吗?我到处打猎,但没有运气。

谢谢

【问题讨论】:

  • 我想从我的 C#.net 应用程序中刷新令牌。有人可以向我提供要在我的代码中配置的确切配置参数吗?我不知道如何在我的 C#.NET 代码中配置这个 curl url。

标签: wso2 wso2-am


【解决方案1】:

示例 curl 请求格式如下所示。

curl -k -d "grant_type=refresh_token&refresh_token=<refreshtoken>&scope=PRODUCTION" -H "Authorization: Basic <Base64 encoded consumer secret and key seperated by semicolan>, Content-Type: application/x-www-form-urlencoded" https://localhost:8243/token

更多信息可以在文档中的更新访问令牌部分找到。

[1]https://docs.wso2.com/display/AM190/Token+API

【讨论】:

    【解决方案2】:

    示例 curl 请求应如下所示

    curl -k -d "grant_type=refresh_token&refresh_token=refreshtoken>&scope=PRODUCTION" -H "Authorization: Basic "<Base64 encoded consumer secret and key seperated by semicolan>" -H "Content-Type: application/x-www-form-urlencoded" https://localhost:8243/token
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-01-05
      • 2017-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多