在错误下面,我使用散列
Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'auth-callback/id_token'没有散列,一切都很顺利。
登录后,它尝试为id_token读取,但它没有得到它,因为现在url类似于
没有散列重定向url是
我怎样才能解决这个问题?
发布于 2020-06-08 07:00:05
我也遇到过类似的问题,我需要在URL中处理#。
我上的是AngularJS而不是角质的。但这是您可能需要的do.On成功身份验证回调--我处理了一些类似的路由,
private onAuthenticationCallback(deepLinkUrl: string): void
{
const params = siteUrl.substr(siteUrl.indexOf("#")); //replace # with actual route??
this.clientRoutingService.goToAuthComplete(params);
}我的goToAuthComplete是什么,
public goToAuthComplete(url: string): ng.IPromise<any>
{
const deferred = this.$q.defer<any>();
this.$state.go("authComplete", { path: url });
deferred.resolve();
return deferred.promise;
}https://stackoverflow.com/questions/62247832
复制相似问题