【发布时间】:2019-11-23 15:01:49
【问题描述】:
我开始使用 Auth0 作为我的身份提供者来实现代码流。
登录完美运行,我从 Auth0 检索到一个有效令牌。
问题:我无法退出。
以下是我遇到的错误。
core.js:9110 ERROR Error: Uncaught (in promise): Error: no end session endpoint
Error: no end session endpoint
at oidc-client.min.js:1
...
这是我的用户管理器配置。
const config = {
authority: 'https://dev-hidden.eu.auth0.com',
client_id: '--hidden--',
redirect_uri: `${window.location.origin}/auth-callback`,
response_type: 'code',
scope: 'openid profile',
automaticSilentRenew: true,
post_logout_redirect_uri: 'http://localhost:4200/',
end_session_endpoint: 'https://dev-hidden.eu.auth0.com'
^^^ I dont think this does anything but I added it anyway
};
我尝试了以下退出,但都没有成功。
this.userManager.signoutRedirect();
this.userManager.signoutRedirectCallback()
我不确定是客户端问题还是 Auth0 问题。
我正在使用oidc-client 1.8.2,但也尝试了其他版本,结果相同。
提前致谢
【问题讨论】:
标签: angular auth0 openid-connect