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:
Fabi
2022-04-13 11:24:03 +02:00
committed by GitHub
parent db554536a1
commit 820a21dce3
33 changed files with 223 additions and 39 deletions

View File

@@ -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 {

View File

@@ -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 {