我认为这是一个与angular 5.2.8 &6相关的错误。使用angular 5.2.7可以很好地工作。我创建了一个ng5 branch并将angular更新到最新的5.2.8,并在!谁能用oidc-client-js给我一个angular 5.2.8及更高版本的示例?
发布于 2018-03-13 02:59:31
它是由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();
}发布于 2019-06-04 03:32:58
如果你像我一样做一些自定义的事情,并且你的问题与散列位置无关,那就忽略它:
completeAuthentication(): Promise<void> {
return this.manager.signinRedirectCallback().then(user => {
this.user = user;
}).catch((err) => {});
}https://stackoverflow.com/questions/49220150
复制相似问题