Using absolute url for authentication

This commit is contained in:
Zoe Roux 2021-08-19 17:56:14 +02:00
parent dca10903ff
commit e2941691f3

View File

@ -29,19 +29,19 @@ export function loadConfig(oidcConfigService: OidcConfigService): () => Promise<
{ {
return () => oidcConfigService.withConfig({ return () => oidcConfigService.withConfig({
stsServer: window.location.origin, stsServer: window.location.origin,
redirectUrl: "/", redirectUrl: `${window.location.origin}/`,
postLogoutRedirectUri: "/logout", postLogoutRedirectUri: `${window.location.origin}/logout`,
clientId: "kyoo.webapp", clientId: "kyoo.webapp",
responseType: "code", responseType: "code",
triggerAuthorizationResultEvent: false, triggerAuthorizationResultEvent: false,
scope: "openid profile offline_access kyoo.read kyoo.write kyoo.play kyoo.admin", scope: "openid profile offline_access kyoo.read kyoo.write kyoo.play kyoo.admin",
silentRenew: true, silentRenew: true,
silentRenewUrl: "/silent.html", silentRenewUrl: `${window.location.origin}/silent.html`,
useRefreshToken: true, useRefreshToken: true,
startCheckSession: true, startCheckSession: true,
forbiddenRoute: "/forbidden", forbiddenRoute: `${window.location.origin}/forbidden`,
unauthorizedRoute: "/unauthorized", unauthorizedRoute: `${window.location.origin}/unauthorized`,
logLevel: LogLevel.Warn logLevel: LogLevel.Warn
}); });
} }