From e2941691f3f57523f2094a036bf10017195f1b58 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 19 Aug 2021 17:56:14 +0200 Subject: [PATCH] Using absolute url for authentication --- src/app/auth/auth.module.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/auth/auth.module.ts b/src/app/auth/auth.module.ts index 9a1135ca..4190f58c 100644 --- a/src/app/auth/auth.module.ts +++ b/src/app/auth/auth.module.ts @@ -29,19 +29,19 @@ export function loadConfig(oidcConfigService: OidcConfigService): () => Promise< { return () => oidcConfigService.withConfig({ stsServer: window.location.origin, - redirectUrl: "/", - postLogoutRedirectUri: "/logout", + redirectUrl: `${window.location.origin}/`, + postLogoutRedirectUri: `${window.location.origin}/logout`, clientId: "kyoo.webapp", responseType: "code", triggerAuthorizationResultEvent: false, scope: "openid profile offline_access kyoo.read kyoo.write kyoo.play kyoo.admin", silentRenew: true, - silentRenewUrl: "/silent.html", + silentRenewUrl: `${window.location.origin}/silent.html`, useRefreshToken: true, startCheckSession: true, - forbiddenRoute: "/forbidden", - unauthorizedRoute: "/unauthorized", + forbiddenRoute: `${window.location.origin}/forbidden`, + unauthorizedRoute: `${window.location.origin}/unauthorized`, logLevel: LogLevel.Warn }); }