加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-17 17:43:33 所属栏目:安全 来源:网络整理
导读:我认为这是与角度5.2.8有关的错误. 6. 角度5.2.7工作正常. 我创建一个 ng5 branch并更新角度到最新的5.2.8和错误com! 任何人都可以指导我使用oidc-client-js进行角度5.2.8和更高版本的样本? 解决方法 它是由window.location.hash中的状态URI编码引起的. 对
我认为这是与角度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();
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读