mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:37:31 +00:00
feat: validate org domains (#3387)
* feat: validate org domain command side * feat: validate org domain query side * fix: create domain policy * feat: add reading domain policy on addorg domain
This commit is contained in:
@@ -3589,6 +3589,7 @@ message GetDomainPolicyResponse {
|
||||
|
||||
message UpdateDomainPolicyRequest {
|
||||
bool user_login_must_be_domain = 1;
|
||||
bool validate_org_domains = 2;
|
||||
}
|
||||
|
||||
message UpdateDomainPolicyResponse {
|
||||
@@ -3637,6 +3638,11 @@ message AddCustomDomainPolicyRequest {
|
||||
description: "the username has to end with the domain of it's organisation"
|
||||
}
|
||||
]; // the username has to end with the domain of it's organisation (uniqueness is organisation based)
|
||||
bool validate_org_domains = 3 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if organisation domains should be validated org count as validated automatically"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message AddCustomDomainPolicyResponse {
|
||||
@@ -3663,6 +3669,11 @@ message UpdateCustomDomainPolicyRequest {
|
||||
description: "the username has to end with the domain of it's organisation"
|
||||
}
|
||||
];
|
||||
bool validate_org_domains = 3 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if organisation domains should be validated org count as validated automatically"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message UpdateCustomDomainPolicyResponse {
|
||||
|
@@ -35,6 +35,11 @@ message DomainPolicy {
|
||||
description: "defines if the organisation's admin changed the policy"
|
||||
}
|
||||
];
|
||||
bool validate_org_domains = 4 [
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines if organisation domains should be validated org count as validated automatically"
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message LabelPolicy {
|
||||
|
Reference in New Issue
Block a user