OIDC配置对象: VUE_APP_OIDC_CONFIG={"authority": "https://auth.mainPlatform.com", "clientId": "<client-id>", "redirectUri": "http://localhost:8080/oidc-callback", "popupRedirectUri": "http://localhost:8080/oidc-popup-callback", "responseType": "id_token token", "scope": "openid email", "automaticSilentRenew": true, "automaticSilentSignin": true, "silentRedirectUri": "http://localhost:8080/silent-renew-oidc.html"}
错误: {context: "authenticateOidcSilent", error: "login_required"} App.vue?234e:38 I am listening to the oidc error event in vuex-oidc context: "authenticateOidcSilent" error: "login_required"

发布于 2020-08-18 11:42:53
这是无声更新流程中一个绝对标准的部分,可能有两个原因:
当您得到一个login_required错误代码时,通常的操作是重定向用户再次登录。
TROUBLESHOOTING
如果这种情况发生在每个令牌更新请求上,我将通过像Fiddler这样的工具进行调试,以查看cookie是否正在发送。您的问题可能是由于最近浏览器对跨域cookie的限制造成的。
有关要与之比较的内容,请参阅我的无声令牌更新博客文章。
https://stackoverflow.com/questions/63463183
复制相似问题