2015-11-05 73 views
0

從WSO2 API管理器中檢索訪問令牌後,需要使用刷新令牌獲取新的訪問令牌?WSO2 API管理器 - 刷新令牌請求格式

這是否記錄在任何地方?我有過一次追捕,但沒有運氣。

謝謝

+0

我想從我的C#.net應用程序更新憑證。有人可以請我提供我的代碼中配置的確切配置參數。我不知道如何在我的C#.NET代碼中配置這個curl url。 – munna

回答

1

示例捲曲請求格式可以列出如下。

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

1

樣品捲曲請求應該是如下

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