Azure AD にリンクされた Azure App Service / Web API があり、認証は機能していますが、クライアント トークンは 1 時間後に期限切れになるため、OAuth refresh_token を有効にしたいと考えています。サービスで /.auth/me を呼び出した結果を調べると、refresh_token が表示されません。アプリ サービスでトークン ストアが有効になっている。
次のように Azure AD マニフェストに追加しようとしましたoauth2permissions
が、表示されません (トークンのキャッシュの場合は、App サービスを再起動し、サービスを再デプロイしました)。
"oauth2Permissions": [
{
"adminConsentDescription": "Allow the application to store a refresh token on behalf of the signed-in user.",
"adminConsentDisplayName": "Refresh tokens",
"id": "3AGH4D29-B64A-4A9A-8DBC-5DB3C8BBBD75",
"isEnabled": true,
"type": "User",
"userConsentDescription": "Allow the application to store a refresh token on your behalf.",
"userConsentDisplayName": "Store refresh token",
"value": "refresh_token"
}
]
私はここで与えられたガイダンスに基づいて試みました: https://cgillum.tech/2016/03/07/app-service-token-store/