angular – 在oidc-client-js中回调后没有响应状态

前端之家收集整理的这篇文章主要介绍了angular – 在oidc-client-js中回调后没有响应状态前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我认为这是与角度5.2.8&有关的错误. 6.
角度5.2.7工作正常.
我创建一个 ng5 branch并更新角度到最新的5.2.8和错误com!
任何人都可以指导我使用oidc-client-js进行角度5.2.8和更高版本的样本?

解决方法

它是由window.location.hash中的状态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();
}

猜你在找的Angularjs相关文章