mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Using absolute url for authentication
This commit is contained in:
parent
dca10903ff
commit
e2941691f3
@ -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
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user