[英]Microsoft Teams Bot - debug refresh token flow
在開發 Microsoft Teams Bot 時,我遇到了一個問題,即永遠不會調用刷新令牌端點。 我相信這是我在配置上的錯誤,但我找不到任何細節到底出了什么問題。 我做了什么:
email offline_access
refresh_token
:我看到code
有問題:{
"code": "[removed for security reasons]",
"grant_type": "authorization_code",
"redirect_uri": "https://token.botframework.com/.auth/web/redirect",
"client_id": "microsoft-teams-bot",
"client_secret": "[removed for security reasons]"
}
之后由code
發出refresh_token
:
{
"scope": "email offline_access",
"token_type": "Bearer",
"access_token": "[removed for security reasons]",
"expires_in": 3600,
"refresh_token": "[removed for security reasons]"
}
但之后再也不使用refresh_token
了。
有什么想法可能是錯的嗎?
問題是機器人的配置錯誤。 它使用刷新端點通過刷新令牌獲取訪問令牌(但我雖然它使用交換端點)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.