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({
|
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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user