![Erik Jan de Wit](/assets/img/avatar_default.png)
* added organizations table to account Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com> Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
32 lines
927 B
TypeScript
32 lines
927 B
TypeScript
import {
|
|
getInjectedEnvironment,
|
|
type BaseEnvironment,
|
|
} from "@keycloak/keycloak-ui-shared";
|
|
|
|
export type Environment = BaseEnvironment & {
|
|
/** The URL to the root of the account console. */
|
|
baseUrl: string;
|
|
/** The locale of the user */
|
|
locale: string;
|
|
/** Name of the referrer application in the back link */
|
|
referrerName?: string;
|
|
/** UR to the referrer application in the back link */
|
|
referrerUrl?: string;
|
|
/** Feature flags */
|
|
features: Feature;
|
|
};
|
|
|
|
export type Feature = {
|
|
isRegistrationEmailAsUsername: boolean;
|
|
isEditUserNameAllowed: boolean;
|
|
isLinkedAccountsEnabled: boolean;
|
|
isMyResourcesEnabled: boolean;
|
|
deleteAccountAllowed: boolean;
|
|
updateEmailFeatureEnabled: boolean;
|
|
updateEmailActionEnabled: boolean;
|
|
isViewGroupsEnabled: boolean;
|
|
isViewOrganizationsEnabled: boolean;
|
|
isOid4VciEnabled: boolean;
|
|
};
|
|
|
|
export const environment = getInjectedEnvironment<Environment>();
|