Allow login realm to be set during development (#3729)
This commit is contained in:
parent
577261abba
commit
8ffe800272
1 changed files with 4 additions and 1 deletions
|
@ -19,9 +19,12 @@ export type Environment = {
|
||||||
isRunningAsTheme: boolean;
|
isRunningAsTheme: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// During development the realm can be passed as a query parameter when redirecting back from Keycloak.
|
||||||
|
const realm = new URLSearchParams(window.location.search).get("realm");
|
||||||
|
|
||||||
// The default environment, used during development.
|
// The default environment, used during development.
|
||||||
const defaultEnvironment: Environment = {
|
const defaultEnvironment: Environment = {
|
||||||
loginRealm: "master",
|
loginRealm: realm ?? "master",
|
||||||
authServerUrl: "http://localhost:8180",
|
authServerUrl: "http://localhost:8180",
|
||||||
authUrl: "http://localhost:8180",
|
authUrl: "http://localhost:8180",
|
||||||
consoleBaseUrl: "/admin/master/console/",
|
consoleBaseUrl: "/admin/master/console/",
|
||||||
|
|
Loading…
Reference in a new issue