gpt4 book ai didi

angular - oidc-client-js 回调后无响应状态

转载 作者:太空狗 更新时间:2023-10-29 17:19:18 25 4
gpt4 key购买 nike

我认为这是与 Angular 5.2.8 & 6 相关的错误。 Angular 5.2.7 工作正常。我创建了一个 ng5 branch并将 Angular 更新到最新的 5.2.8 并且出现错误!任何人都可以使用 oidc-client-js 指导我使用 angular 5.2.8 和更高版本的示例吗?

最佳答案

是window.location.hash中state的URI编码引起的。对我来说,这解决了这个问题:

if (window.location.hash) {
window.location.hash = decodeURIComponent(window.location.hash);
// authorizedCallback returns wrong result when hash is URI encoded
this.oidcSecurityService.authorizedCallback();
} else {
this.oidcSecurityService.authorize();
}

关于angular - oidc-client-js 回调后无响应状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49220150/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com