\ No newline at end of file
diff --git a/console/src/app/pages/orgs/policy-grid/policy-grid.component.ts b/console/src/app/pages/orgs/policy-grid/policy-grid.component.ts
deleted file mode 100644
index c1e11aa4f..000000000
--- a/console/src/app/pages/orgs/policy-grid/policy-grid.component.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-import { Component } from '@angular/core';
-import { PolicyComponentType } from 'src/app/modules/policies/policy-component-types.enum';
-import {
- LoginPolicyView,
- OrgIamPolicyView,
- PasswordComplexityPolicyView,
- PolicyState,
-} from 'src/app/proto/generated/management_pb';
-import { ManagementService } from 'src/app/services/mgmt.service';
-import { ToastService } from 'src/app/services/toast.service';
-
-@Component({
- selector: 'app-policy-grid',
- templateUrl: './policy-grid.component.html',
- styleUrls: ['./policy-grid.component.scss'],
-})
-export class PolicyGridComponent {
- public complexityPolicy!: PasswordComplexityPolicyView.AsObject;
- public iamPolicy!: OrgIamPolicyView.AsObject;
- public loginPolicy!: LoginPolicyView.AsObject;
-
- public PolicyState: any = PolicyState;
- public PolicyComponentType: any = PolicyComponentType;
-
- constructor(
- public mgmtService: ManagementService,
- private toast: ToastService,
- ) {
- this.getData();
- }
-
- private getData(): void {
- this.mgmtService.GetPasswordComplexityPolicy().then(data => this.complexityPolicy = data.toObject()).catch(error => {
- this.toast.showError(error);
- });
- this.mgmtService.GetMyOrgIamPolicy().then(data => this.iamPolicy = data.toObject());
- this.mgmtService.GetLoginPolicy().then(data => {
- this.loginPolicy = data.toObject();
- });
- }
-}
diff --git a/console/src/app/services/admin.service.ts b/console/src/app/services/admin.service.ts
index 9e668fec8..adad72a27 100644
--- a/console/src/app/services/admin.service.ts
+++ b/console/src/app/services/admin.service.ts
@@ -7,6 +7,9 @@ import {
CreateHumanRequest,
CreateOrgRequest,
CreateUserRequest,
+ DefaultLabelPolicy,
+ DefaultLabelPolicyUpdate,
+ DefaultLabelPolicyView,
DefaultLoginPolicy,
DefaultLoginPolicyView,
DefaultPasswordAgePolicyRequest,
@@ -162,6 +165,17 @@ export class AdminService {
return this.grpcService.admin.updateDefaultPasswordLockoutPolicy(req);
}
+ /* label */
+
+ public GetDefaultLabelPolicy(): Promise {
+ const req = new Empty();
+ return this.grpcService.admin.getDefaultLabelPolicy(req);
+ }
+
+ public UpdateDefaultLabelPolicy(req: DefaultLabelPolicyUpdate): Promise {
+ return this.grpcService.admin.updateDefaultLabelPolicy(req);
+ }
+
/* login */
public GetDefaultLoginPolicy(
diff --git a/console/src/app/services/mgmt.service.ts b/console/src/app/services/mgmt.service.ts
index 9aac01244..ab6debbfe 100644
--- a/console/src/app/services/mgmt.service.ts
+++ b/console/src/app/services/mgmt.service.ts
@@ -612,13 +612,13 @@ export class ManagementService {
public getLocalizedComplexityPolicyPatternErrorString(policy: PasswordComplexityPolicy.AsObject): string {
if (policy.hasNumber && policy.hasSymbol) {
- return 'ORG.POLICY.PWD_COMPLEXITY.SYMBOLANDNUMBERERROR';
+ return 'POLICY.PWD_COMPLEXITY.SYMBOLANDNUMBERERROR';
} else if (policy.hasNumber) {
- return 'ORG.POLICY.PWD_COMPLEXITY.NUMBERERROR';
+ return 'POLICY.PWD_COMPLEXITY.NUMBERERROR';
} else if (policy.hasSymbol) {
- return 'ORG.POLICY.PWD_COMPLEXITY.SYMBOLERROR';
+ return 'POLICY.PWD_COMPLEXITY.SYMBOLERROR';
} else {
- return 'ORG.POLICY.PWD_COMPLEXITY.PATTERNERROR';
+ return 'POLICY.PWD_COMPLEXITY.PATTERNERROR';
}
}
diff --git a/console/src/assets/i18n/de.json b/console/src/assets/i18n/de.json
index 5c6034f0a..be864ad88 100644
--- a/console/src/assets/i18n/de.json
+++ b/console/src/assets/i18n/de.json
@@ -350,10 +350,6 @@
"DELETE":"Entfernen",
"DELETESUCCESS":"Gescheiterte Events entfernt."
},
- "POLICY": {
- "TITLE":"Standardrichtlinien für ihre Organisationen",
- "DESCRIPTION":"Diese Einstellungen können von Organisationen erweitert und/oder verändert werden."
- },
"TOAST":{
"MEMBERREMOVED":"Manager entfernt.",
"MEMBERSADDED": "Manager hinzugefügt.",
@@ -421,74 +417,6 @@
"TITLE":"Manager der Organisation verwalten",
"DESCRIPTION":"Definiere hier die Benutzer, die Operationen auf Deinen Organisationen vornehmen dürfen."
},
- "POLICY": {
- "TITLE":"Richtlinen entdecken",
- "DESCRIPTION":"Vorgefertigte Richtlinien, die Dir Zeit sparen und die Sicherheit erhöhen.",
- "PWD_COMPLEXITY": {
- "TITLE":"Passwortkomplexität",
- "DESCRIPTION":"Stellt sicher, dass alle festgelegten Passwörter einem bestimmten Muster entsprechen.",
- "TITLECREATE":"Passwortkomplexitätsrichtlinie erstellen",
- "DESCRIPTIONCREATE":"Stellt sicher, dass alle festgelegten Passwörter einem bestimmten Muster entsprechen.",
- "SYMBOLANDNUMBERERROR":"Das Password muss ein Symbol/Satzzeichen und eine Ziffer beinhalten.",
- "SYMBOLERROR":"Das Password muss ein Symbol/Satzzeichen beinhalten.",
- "NUMBERERROR":"Das Password muss eine Ziffer beinhalten.",
- "PATTERNERROR":"Das Passwort erfüllt nicht die vorgeschriebene Richtlinie."
- },
- "PWD_AGE": {
- "TITLE":"Gültigkeitsdauer für Passwörter",
- "DESCRIPTION":"Du kannst eine Richtlinie für die maximale Gültigkeitsdauer von Passwörtern festlegen. Diese Richtlinie löst eine Warnung nach Ablauf einer festgelegten Gültigkeitsdauer aus.",
- "TITLECREATE":"Richtlinie für Gültigkeitsdauer von Passwörtern festlegen",
- "DESCRIPTIONCREATE":"Du kannst eine Richtlinie für die Gültigkeitsdauer von Passwörtern festlegen. Diese Richtlinie löst eine Warnung nach Ablauf einer festgelegten Gültigkeitsdauer aus."
- },
- "PWD_LOCKOUT": {
- "TITLE":"Passwortsperre",
- "DESCRIPTION":"Standardmässig sind die Passwortwiederholungen bei Falscheingabe nicht begrenzt. Du musst diese Richtlinie installieren, wenn Du Wiederholungsversuche anzeigen, oder eine maximale Anzahl von wiederholten Passworteingaben festlegen möchtest.",
- "TITLECREATE":"Richtline zur Passwortsperre festlegen",
- "DESCRIPTIONCREATE":"Standardmässig sind die Passwortwiederholungen bei Falscheingabe nicht begrenzt. Du musst diese Richtlinie anwenden, wenn Du Wiederholungsversuche anzeigen, oder eine maximale Anzahl von wiederholten Passworteingaben festlegen möchtest."
- },
- "IAM_POLICY": {
- "TITLE":"Zugangseinstellungen IAM",
- "DESCRIPTION":"Definiere die Zugangseistellungen für Benutzer.",
- "TITLECREATE":"Zugangseinstellungen für IAM festlegen",
- "DESCRIPTIONCREATE":"E-Mails als Benutzernamen sind nicht erlaubt, wenn die Eigenschaft \"UserLoginMustBeDomain\" gesetzt ist."
- },
- "LOGIN_POLICY": {
- "TITLE":"Login Richtlinien",
- "DESCRIPTION":"Definiere die Loginmethoden für Benutzer",
- "TITLECREATE":"Definiere die Loginmethoden für Benutzer",
- "DESCRIPTIONCREATEADMIN":"Nutzer können sich mit den verfügbaren Idps authentifizieren.",
- "DESCRIPTIONCREATEMGMT":"Nutzer können sich mit den verfügbaren Idps authentifizieren. Achtung: Es kann zwischen System- und organisationsspezifischen Providern gewählt werden.",
- "SAVED":"Erfolgreich gespeichert."
- },
- "DEFAULTLABEL":"Die aktuelle Richtlinie entspricht der IAM-Standard Einstellung.",
- "BTN_INSTALL":"Installieren",
- "BTN_EDIT":"Modifizieren",
- "DATA": {
- "DESCRIPTION":"Beschreibung",
- "MINLENGTH":"Mindestlänge",
- "HASNUMBER": "erfordert Ziffer",
- "HASSYMBOL": "erfordert Symbol/Satzzeichen",
- "HASLOWERCASE": "erfordert Kleinbuchstaben",
- "HASUPPERCASE": "erfordert Grossbuchstaben",
- "SHOWLOCKOUTFAILURES":"Zeige Anzahl Anmeldeversuche",
- "MAXATTEMPTS":"Maximale Anzahl an Versuchen",
- "EXPIREWARNDAYS":"Ablauf Warnung nach Tagen",
- "MAXAGEDAYS":"Maximale Gültigkeit in Tagen",
- "USERLOGINMUSTBEDOMAIN":"Benutzer-Login muss eine Domain sein",
- "ALLOWUSERNAMEPASSWORD":"Benutzername Password erlaubt",
- "ALLOWEXTERNALIDP":"Externer IDP erlaubt",
- "ALLOWREGISTER":"Registrieren erlaubt",
- "ALLOWUSERNAMEPASSWORD_DESC":"Der konventionelle Login mit Benutzername und Passwort wird erlaubt.",
- "ALLOWEXTERNALIDP_DESC":"Der Login wird für die darunter liegenden Identity Provider erlaubt.",
- "ALLOWREGISTER_DESC":"Ist die Option gewählt, erscheint im Login ein zusätzlicher Schritt zum Registrieren eines Benutzers."
- },
- "RESET":"Richtlinie zurücksetzen",
- "CREATECUSTOM":"Benutzerdefinierte Richtlinie erstellen",
- "TOAST":{
- "SET":"Richtline erfolgreich gesetzt!",
- "RESETSUCCESS":"Richtline zurückgesetzt!"
- }
- },
"TOAST": {
"DEACTIVATED":"Organisation deaktiviert.",
"REACTIVATED":"Organisation reaktiviert.",
@@ -500,6 +428,72 @@
"SETPRIMARY":"Primäre Domain gesetzt."
}
},
+ "POLICY": {
+ "TITLE":"Richtlinen entdecken",
+ "DESCRIPTION":"Vorgefertigte Richtlinien, die Dir Zeit sparen und die Sicherheit erhöhen.",
+ "PWD_COMPLEXITY": {
+ "TITLE":"Passwortkomplexität",
+ "DESCRIPTION":"Stellt sicher, dass alle festgelegten Passwörter einem bestimmten Muster entsprechen.",
+ "SYMBOLANDNUMBERERROR":"Das Password muss ein Symbol/Satzzeichen und eine Ziffer beinhalten.",
+ "SYMBOLERROR":"Das Password muss ein Symbol/Satzzeichen beinhalten.",
+ "NUMBERERROR":"Das Password muss eine Ziffer beinhalten.",
+ "PATTERNERROR":"Das Passwort erfüllt nicht die vorgeschriebene Richtlinie."
+ },
+ "PWD_AGE": {
+ "TITLE":"Gültigkeitsdauer für Passwörter",
+ "DESCRIPTION":"Du kannst eine Richtlinie für die maximale Gültigkeitsdauer von Passwörtern festlegen. Diese Richtlinie löst eine Warnung nach Ablauf einer festgelegten Gültigkeitsdauer aus."
+ },
+ "PWD_LOCKOUT": {
+ "TITLE":"Passwortsperre",
+ "DESCRIPTION":"Standardmässig sind die Passwortwiederholungen bei Falscheingabe nicht begrenzt. Du musst diese Richtlinie installieren, wenn Du Wiederholungsversuche anzeigen, oder eine maximale Anzahl von wiederholten Passworteingaben festlegen möchtest."
+ },
+ "IAM_POLICY": {
+ "TITLE":"Zugangseinstellungen IAM",
+ "DESCRIPTION":"Definiere die Zugangseistellungen für Benutzer."
+ },
+ "LOGIN_POLICY": {
+ "TITLE":"Login Richtlinien",
+ "DESCRIPTION":"Definiere die Loginmethoden für Benutzer",
+ "DESCRIPTIONCREATEADMIN":"Nutzer können sich mit den verfügbaren Idps authentifizieren.",
+ "DESCRIPTIONCREATEMGMT":"Nutzer können sich mit den verfügbaren Idps authentifizieren. Achtung: Es kann zwischen System- und organisationsspezifischen Providern gewählt werden.",
+ "SAVED":"Erfolgreich gespeichert."
+ },
+ "LABEL": {
+ "TITLE":"Email Labelling Einstellungen",
+ "DESCRIPTION":"Definieren Sie das Erscheinungsbild Ihrer Benachrichtigungs-Mails",
+ "PRIMARYCOLOR":"Hintergrundfarbe",
+ "SECONDARYCOLOR":"Schriftfarbe",
+ "SAVED":"Erfolgreich gespeichert."
+ },
+ "DEFAULTLABEL":"Die aktuelle Richtlinie entspricht der IAM-Standard Einstellung.",
+ "BTN_INSTALL":"Installieren",
+ "BTN_EDIT":"Modifizieren",
+ "DATA": {
+ "DESCRIPTION":"Beschreibung",
+ "MINLENGTH":"Mindestlänge",
+ "HASNUMBER": "erfordert Ziffer",
+ "HASSYMBOL": "erfordert Symbol/Satzzeichen",
+ "HASLOWERCASE": "erfordert Kleinbuchstaben",
+ "HASUPPERCASE": "erfordert Grossbuchstaben",
+ "SHOWLOCKOUTFAILURES":"Zeige Anzahl Anmeldeversuche",
+ "MAXATTEMPTS":"Maximale Anzahl an Versuchen",
+ "EXPIREWARNDAYS":"Ablauf Warnung nach Tagen",
+ "MAXAGEDAYS":"Maximale Gültigkeit in Tagen",
+ "USERLOGINMUSTBEDOMAIN":"Benutzer-Login muss eine Domain sein",
+ "ALLOWUSERNAMEPASSWORD":"Benutzername Password erlaubt",
+ "ALLOWEXTERNALIDP":"Externer IDP erlaubt",
+ "ALLOWREGISTER":"Registrieren erlaubt",
+ "ALLOWUSERNAMEPASSWORD_DESC":"Der konventionelle Login mit Benutzername und Passwort wird erlaubt.",
+ "ALLOWEXTERNALIDP_DESC":"Der Login wird für die darunter liegenden Identity Provider erlaubt.",
+ "ALLOWREGISTER_DESC":"Ist die Option gewählt, erscheint im Login ein zusätzlicher Schritt zum Registrieren eines Benutzers."
+ },
+ "RESET":"Richtlinie zurücksetzen",
+ "CREATECUSTOM":"Benutzerdefinierte Richtlinie erstellen",
+ "TOAST":{
+ "SET":"Richtline erfolgreich gesetzt!",
+ "RESETSUCCESS":"Richtline zurückgesetzt!"
+ }
+ },
"ORG_DETAIL": {
"TITLE": "Organisation",
"DESCRIPTION": "Hier kannst Du Deine Konfiguration der Organisation bearbeiten und Mitglieder verwalten.",
diff --git a/console/src/assets/i18n/en.json b/console/src/assets/i18n/en.json
index eceaafb66..faa9343ae 100644
--- a/console/src/assets/i18n/en.json
+++ b/console/src/assets/i18n/en.json
@@ -350,10 +350,6 @@
"DELETE":"Remove",
"DELETESUCCESS":"Failed events removed."
},
- "POLICY": {
- "TITLE":"Default policies for organisations",
- "DESCRIPTION":"These settings can be enhanced and/or customized by registered organisations."
- },
"TOAST":{
"MEMBERREMOVED":"Manager removed.",
"MEMBERSADDED": "Managers added.",
@@ -421,74 +417,6 @@
"TITLE":"Organisation Managers",
"DESCRIPTION":"Define the users who can change your organisations preferences."
},
- "POLICY": {
- "TITLE":"Explore Policies",
- "DESCRIPTION":"Pre-packaged policies that enhance your security.",
- "PWD_COMPLEXITY": {
- "TITLE":"Password Complexity",
- "DESCRIPTION":"Ensures that all set passwords correspond to a specific pattern",
- "TITLECREATE":"Create Password Complexity Policy",
- "DESCRIPTIONCREATE":"Ensures that all set passwords correspond to a specific pattern",
- "SYMBOLANDNUMBERERROR":"The password must consist of a digit and a symbol/punctuation mark.",
- "SYMBOLERROR":"The password must include a symbol/punctuation mark.",
- "NUMBERERROR":"The password must include a digit.",
- "PATTERNERROR":"The password does not meet the required pattern."
- },
- "PWD_AGE": {
- "TITLE":"Password Aging",
- "DESCRIPTION":"You can set a policy for the aging of passwords. This policy emits a warning after the specific aging time has elapsed.",
- "TITLECREATE":"Create Password Aging Policy",
- "DESCRIPTIONCREATE":"You can set a policy for the aging of passwords. This policy emits a warning after the specific aging time has elapsed."
- },
- "PWD_LOCKOUT": {
- "TITLE":"Password Lockout",
- "DESCRIPTION":"Password retries are infinite in default mode. You have to apply this policy if you want to show the number of retries, or set a maximum number of retries after which the account will be blocked.",
- "TITLECREATE":"Create Password Lockout Policy",
- "DESCRIPTIONCREATE":"Password retries are infinite in default mode. You have to apply this policy if you want to show the number of retries, or set a maximum number of retries after which the account will be blocked."
- },
- "IAM_POLICY": {
- "TITLE":"IAM Access Preferences",
- "DESCRIPTION":"Define access properties of your users.",
- "TITLECREATE":"Set IAM Access Preferences",
- "DESCRIPTIONCREATE":"If the property \"UserLoginMustBeDomain\" is enabled an e-mail address cannot be used as a user name."
- },
- "LOGIN_POLICY": {
- "TITLE":"Login Policy",
- "DESCRIPTION":"Define how Users can be authenticated",
- "TITLECREATE":"Define how Users can be authenticated",
- "DESCRIPTIONCREATEADMIN":"Users can choose from the available identity providers below.",
- "DESCRIPTIONCREATEMGMT":"Users can choose from the available identity providers below. Note: You can use System-set providers as well as providers set for your organisation only.",
- "SAVED":"Saved successfully!"
- },
- "DEFAULTLABEL":"The currently set guideline corresponds to the standard setting set by the IAM Administrator.",
- "BTN_INSTALL":"Setup",
- "BTN_EDIT":"Modify",
- "DATA": {
- "DESCRIPTION":"Description",
- "MINLENGTH":"minimum length",
- "HASNUMBER": "has number",
- "HASSYMBOL": "has symbol",
- "HASLOWERCASE": "has lowercase",
- "HASUPPERCASE": "has uppercase",
- "SHOWLOCKOUTFAILURES":"show lockout failures",
- "MAXATTEMPTS":"Max Attempts",
- "EXPIREWARNDAYS":"Expiration Warning after day",
- "MAXAGEDAYS":"Max Age in days",
- "USERLOGINMUSTBEDOMAIN":"User Login must be Domain",
- "ALLOWUSERNAMEPASSWORD":"Username Password allowed",
- "ALLOWEXTERNALIDP":"External IDP allowed",
- "ALLOWREGISTER":"Register allowed",
- "ALLOWUSERNAMEPASSWORD_DESC":"The conventional login with user name and password is allowed.",
- "ALLOWEXTERNALIDP_DESC":"The login is allowed for the underlying identity providers",
- "ALLOWREGISTER_DESC":"If the option is selected, an additional step for registering a user appears in the login."
- },
- "RESET":"Reset Policy",
- "CREATECUSTOM":"Create Custom Policy",
- "TOAST":{
- "SET":"Policy set successfully!",
- "RESETSUCCESS":"Policy reset successfully!"
- }
- },
"TOAST": {
"DEACTIVATED":"Organisation deactivated.",
"REACTIVATED":"Organisation reactivated.",
@@ -500,6 +428,72 @@
"SETPRIMARY":"Primary domain set."
}
},
+ "POLICY": {
+ "TITLE":"Explore Policies",
+ "DESCRIPTION":"Pre-packaged policies that enhance your security.",
+ "PWD_COMPLEXITY": {
+ "TITLE":"Password Complexity",
+ "DESCRIPTION":"Ensures that all set passwords correspond to a specific pattern",
+ "SYMBOLANDNUMBERERROR":"The password must consist of a digit and a symbol/punctuation mark.",
+ "SYMBOLERROR":"The password must include a symbol/punctuation mark.",
+ "NUMBERERROR":"The password must include a digit.",
+ "PATTERNERROR":"The password does not meet the required pattern."
+ },
+ "PWD_AGE": {
+ "TITLE":"Password Aging",
+ "DESCRIPTION":"You can set a policy for the aging of passwords. This policy emits a warning after the specific aging time has elapsed."
+ },
+ "PWD_LOCKOUT": {
+ "TITLE":"Password Lockout",
+ "DESCRIPTION":"Password retries are infinite in default mode. You have to apply this policy if you want to show the number of retries, or set a maximum number of retries after which the account will be blocked."
+ },
+ "IAM_POLICY": {
+ "TITLE":"IAM Access Preferences",
+ "DESCRIPTION":"Define access properties of your users."
+ },
+ "LOGIN_POLICY": {
+ "TITLE":"Login Policy",
+ "DESCRIPTION":"Define how Users can be authenticated",
+ "DESCRIPTIONCREATEADMIN":"Users can choose from the available identity providers below.",
+ "DESCRIPTIONCREATEMGMT":"Users can choose from the available identity providers below. Note: You can use System-set providers as well as providers set for your organisation only.",
+ "SAVED":"Saved successfully!"
+ },
+ "LABEL": {
+ "TITLE":"Email Labelling Settings",
+ "DESCRIPTION":"Change the look of your emails.",
+ "PRIMARYCOLOR":"Background color",
+ "SECONDARYCOLOR":"Font color",
+ "SAVED":"Saved successfully"
+ },
+ "DEFAULTLABEL":"The currently set guideline corresponds to the standard setting set by the IAM Administrator.",
+ "BTN_INSTALL":"Setup",
+ "BTN_EDIT":"Modify",
+ "DATA": {
+ "DESCRIPTION":"Description",
+ "MINLENGTH":"minimum length",
+ "HASNUMBER": "has number",
+ "HASSYMBOL": "has symbol",
+ "HASLOWERCASE": "has lowercase",
+ "HASUPPERCASE": "has uppercase",
+ "SHOWLOCKOUTFAILURES":"show lockout failures",
+ "MAXATTEMPTS":"Max Attempts",
+ "EXPIREWARNDAYS":"Expiration Warning after day",
+ "MAXAGEDAYS":"Max Age in days",
+ "USERLOGINMUSTBEDOMAIN":"User Login must be Domain",
+ "ALLOWUSERNAMEPASSWORD":"Username Password allowed",
+ "ALLOWEXTERNALIDP":"External IDP allowed",
+ "ALLOWREGISTER":"Register allowed",
+ "ALLOWUSERNAMEPASSWORD_DESC":"The conventional login with user name and password is allowed.",
+ "ALLOWEXTERNALIDP_DESC":"The login is allowed for the underlying identity providers",
+ "ALLOWREGISTER_DESC":"If the option is selected, an additional step for registering a user appears in the login."
+ },
+ "RESET":"Reset Policy",
+ "CREATECUSTOM":"Create Custom Policy",
+ "TOAST":{
+ "SET":"Policy set successfully!",
+ "RESETSUCCESS":"Policy reset successfully!"
+ }
+ },
"ORG_DETAIL": {
"TITLE": "Organisation",
"DESCRIPTION": "Here you can edit the configuration of your organisation and manage the members.",