mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
feat: set private labeling setting on project (#2184)
* docs: add scope to request private labeling * feat: add enum to project * fix: remove unused code, add private labeling setting to query side * fix: set private labeling depending on setting * fix: private labeling depending on project setting * Update proto/zitadel/management.proto Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: rename sql file * fix: private labeling setting Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -3453,6 +3453,7 @@ message AddProjectRequest {
|
||||
bool project_role_assertion = 2;
|
||||
bool project_role_check = 3;
|
||||
bool has_project_check = 4;
|
||||
zitadel.project.v1.PrivateLabelingSetting private_labeling_setting = 5 [(validate.rules).enum = {defined_only: true}];
|
||||
}
|
||||
|
||||
message AddProjectResponse {
|
||||
@@ -3466,6 +3467,7 @@ message UpdateProjectRequest {
|
||||
bool project_role_assertion = 3;
|
||||
bool project_role_check = 4;
|
||||
bool has_project_check = 5;
|
||||
zitadel.project.v1.PrivateLabelingSetting private_labeling_setting = 6 [(validate.rules).enum = {defined_only: true}];
|
||||
}
|
||||
|
||||
message UpdateProjectResponse {
|
||||
|
@@ -31,6 +31,8 @@ message Project {
|
||||
bool project_role_check = 6;
|
||||
// ZITADEL checks if the org of the user has permission to this project
|
||||
bool has_project_check = 7;
|
||||
// Defines from where the private labeling should be triggered
|
||||
PrivateLabelingSetting private_labeling_setting = 8;
|
||||
}
|
||||
|
||||
message GrantedProject {
|
||||
@@ -90,6 +92,12 @@ enum ProjectState {
|
||||
PROJECT_STATE_INACTIVE = 2;
|
||||
}
|
||||
|
||||
enum PrivateLabelingSetting {
|
||||
PRIVATE_LABELING_SETTING_UNSPECIFIED = 0;
|
||||
PRIVATE_LABELING_SETTING_ENFORCE_PROJECT_RESOURCE_OWNER_POLICY = 1;
|
||||
PRIVATE_LABELING_SETTING_ALLOW_LOGIN_USER_RESOURCE_OWNER_POLICY = 2;
|
||||
}
|
||||
|
||||
enum ProjectGrantState {
|
||||
PROJECT_GRANT_STATE_UNSPECIFIED = 0;
|
||||
PROJECT_GRANT_STATE_ACTIVE = 1;
|
||||
|
Reference in New Issue
Block a user