@@ -28,34 +28,4 @@ export type Feature = {
2828 isOid4VciEnabled : boolean ;
2929} ;
3030
31- // During development the realm can be passed as a query parameter when redirecting back from Keycloak.
32- const realm =
33- new URLSearchParams ( window . location . search ) . get ( "realm" ) ||
34- location . pathname . match ( "/realms/(.*?)/account" ) ?. [ 1 ] ||
35- "master" ;
36-
37- const defaultEnvironment : Environment = {
38- // Base environment variables
39- authServerUrl : "http://localhost:8180" ,
40- realm : realm ,
41- clientId : "security-admin-console-v2" ,
42- resourceUrl : "http://localhost:8080" ,
43- logo : "/logo.svg" ,
44- logoUrl : "/" ,
45- // Account Console specific environment variables
46- baseUrl : `http://localhost:8180/realms/${ realm } /account/` ,
47- locale : "en" ,
48- features : {
49- isRegistrationEmailAsUsername : false ,
50- isEditUserNameAllowed : true ,
51- isLinkedAccountsEnabled : true ,
52- isMyResourcesEnabled : true ,
53- deleteAccountAllowed : true ,
54- updateEmailFeatureEnabled : true ,
55- updateEmailActionEnabled : true ,
56- isViewGroupsEnabled : true ,
57- isOid4VciEnabled : true ,
58- } ,
59- } ;
60-
61- export const environment = getInjectedEnvironment ( defaultEnvironment ) ;
31+ export const environment = getInjectedEnvironment < Environment > ( ) ;
0 commit comments