在我的Angular6应用程序中,我将oktaConfig对象配置为如下所示,这样可以正常工作,没有任何问题
//okataConfig.ts
export const oktaConfig = {
url: 'https://dev-501039.oktapreview.com',
clientId: 'xxxxxxxxxxxxxxxxxxxxxx',
issuer: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
redirectUri: 'http://localhost:4200/implicit/callback',
};
//routing.ts
{path: '',component: DefaultLayoutComponent,canActivate: [AuthGuard]},
{path: 'implicit/callback',component: CallbackComponent},
但当我启用散列位置时,重定向不起作用,
//应用模块.ts
providers: [
{
provide: LocationStrategy,
useClass: HashLocationStrategy,
},
AuthGuard, OktaAuthService
],
在路由中应如何配置?