feat: get current label and privacy policies (#3748)

This commit is contained in:
Livio Amstutz
2022-06-01 09:50:28 +02:00
committed by GitHub
parent b0436c995b
commit 21a0e4a972
3 changed files with 123 additions and 0 deletions

View File

@@ -585,6 +585,28 @@ service AuthService {
permission: "authenticated"
};
}
// Returns the label policy of the current organisation
rpc GetMyLabelPolicy(GetMyLabelPolicyRequest) returns (GetMyLabelPolicyResponse) {
option (google.api.http) = {
get: "/policies/label"
};
option (zitadel.v1.auth_option) = {
permission: "authenticated"
};
}
// Returns the privacy policy of the current organisation
rpc GetMyPrivacyPolicy(GetMyPrivacyPolicyRequest) returns (GetMyPrivacyPolicyResponse) {
option (google.api.http) = {
get: "/policies/privacy"
};
option (zitadel.v1.auth_option) = {
permission: "authenticated"
};
}
}
//This is an empty request
@@ -1017,3 +1039,17 @@ message ListMyMembershipsResponse {
zitadel.v1.ListDetails details = 1;
repeated zitadel.user.v1.Membership result = 2;
}
//This is an empty request
message GetMyLabelPolicyRequest {}
message GetMyLabelPolicyResponse {
zitadel.policy.v1.LabelPolicy policy = 1;
}
//This is an empty request
message GetMyPrivacyPolicyRequest {}
message GetMyPrivacyPolicyResponse {
zitadel.policy.v1.PrivacyPolicy policy = 1;
}