【发布时间】:2021-01-11 15:27:44
【问题描述】:
我使用 "oidc-client": "1.10.1" 进行 oidc 身份验证,下面是我对 userManager 的配置
const settings = {
authority: (window as any).__env.auth.authority, //OAuth 2.0 authorization endpoint of the OpenID Provider
client_id: (window as any).__env.auth.clientID, //
redirect_uri: (window as any).__env.auth.redirectUri, //callback URI for the authentication response
response_type: 'id_token token',
scope: 'openid profile api',
automaticSilentRenew: true,
silent_redirect_uri: (window as any).__env.auth.silentRedirectUri,
userStore: new WebStorageStateStore({ store: window.localStorage }),
loadUserInfo: true,
post_logout_redirect_uri: (window as any).__env.auth.postLogoutRedirectUri,
silentRequestTimeout: 30000,
};
甚至没有进行静默更新令牌调用,即用户在令牌到期后注销。我错过了什么吗?
附:我想让令牌自动更新工作,因为我手动尝试了令牌更新,它确实有效,但似乎不是一种可靠的方法。
【问题讨论】:
标签: angular openid-connect oidc-client-js