【发布时间】:2020-01-14 20:29:24
【问题描述】:
我在 Auth0 中有一个使用 PKCE 流程的本机应用程序。当我使用 Auth0.js 从 Ionic 应用程序调用 Auth0.authorize() 时,我得到一个访问令牌和一个 ID 令牌,但没有刷新令牌。
我将 offline_access 范围传递给 Auth0.authorize()(以及 openid profile)。我使用的 API 启用了“Allow Offline Access”。我没有定义任何规则。
Auth0 中的应用在高级设置中启用了以下授权:隐式、授权码、刷新令牌。
在我的客户端应用程序的 Auth0 配置中,我正在设置:
...,
audience: 'xxxxxxxxx', /* My API identifier */
responseType: 'token id_token'
我的重定向回调正在接收哈希参数,例如:
access_token=xxxxx&scope=openid%20profile%20offline_access&expires_in=7200&token_type=Bearer&state=xxx&id_token=xxxxx 但没有 refresh_token。
我错过了什么?
【问题讨论】:
标签: auth0 openid-connect