mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-25 05:58:45 +00:00
fix: generated project grant id (#10747)
# Which Problems Are Solved Project Grant ID would have needed to be unique to be handled properly on the projections, but was defined as the organization ID the project was granted to, so could be non-unique. # How the Problems Are Solved Generate the Project Grant ID even in the v2 APIs, which also includes fixes in the integration tests. Additionally to that, the logic for some functionality had to be extended as the Project Grant ID is not provided anymore in the API, so had to be queried before creating events for Project Grants. # Additional Changes Included fix for authorizations, when an authorization was intended to be created for a project, without providing any organization information, which also showed some faulty integration tests. # Additional Context Partially closes #10745 --------- Co-authored-by: Livio Spring <[email protected]> Co-authored-by: Silvan <[email protected]>
This commit is contained in:
co-authored by
Livio Spring
Silvan
parent
adc8fb2013
commit
b6ff4ff16c
@@ -313,10 +313,12 @@ message CreateAdministratorRequest {
|
||||
|
||||
message ResourceType {
|
||||
message ProjectGrant {
|
||||
reserved "project_grant_id";
|
||||
reserved 2;
|
||||
// ProjectID is required to grant administrator privileges for a specific project.
|
||||
string project_id = 1;
|
||||
// ProjectGrantID is required to grant administrator privileges for a specific project grant.
|
||||
string project_grant_id = 2;
|
||||
// OrganizationID is required to grant administrator privileges for a specific project grant.
|
||||
string organization_id = 3;
|
||||
}
|
||||
|
||||
// Resource is the type of the resource the administrator roles should be granted for.
|
||||
@@ -381,4 +383,4 @@ message DeleteAdministratorResponse {
|
||||
// Note that the deletion date is only guaranteed to be set if the deletion was successful during the request.
|
||||
// In case the deletion occurred in a previous request, the deletion date might not be set.
|
||||
google.protobuf.Timestamp deletion_date = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user