mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-16 10:45:12 +00:00
feat: project roles (#843)
* fix logging * token verification * feat: assert roles * feat: add project role assertion on project and token type on app * id and access token role assertion * add project role check * user grant required step in login * update library * fix merge * fix merge * fix merge * update oidc library * fix tests * add tests for GrantRequiredStep * add missing field ProjectRoleCheck on project view model * fix project create * fix project create
This commit is contained in:
@@ -6381,6 +6381,10 @@ func (m *ProjectCreateRequest) Validate() error {
|
||||
}
|
||||
}
|
||||
|
||||
// no validation rules for ProjectRoleAssertion
|
||||
|
||||
// no validation rules for ProjectRoleCheck
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -6462,6 +6466,10 @@ func (m *ProjectUpdateRequest) Validate() error {
|
||||
}
|
||||
}
|
||||
|
||||
// no validation rules for ProjectRoleAssertion
|
||||
|
||||
// no validation rules for ProjectRoleCheck
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -6659,6 +6667,10 @@ func (m *ProjectView) Validate() error {
|
||||
|
||||
// no validation rules for Sequence
|
||||
|
||||
// no validation rules for ProjectRoleAssertion
|
||||
|
||||
// no validation rules for ProjectRoleCheck
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -6998,6 +7010,10 @@ func (m *Project) Validate() error {
|
||||
|
||||
// no validation rules for Sequence
|
||||
|
||||
// no validation rules for ProjectRoleAssertion
|
||||
|
||||
// no validation rules for ProjectRoleCheck
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -8850,6 +8866,12 @@ func (m *OIDCConfig) Validate() error {
|
||||
|
||||
// no validation rules for DevMode
|
||||
|
||||
// no validation rules for AccessTokenType
|
||||
|
||||
// no validation rules for AccessTokenRoleAssertion
|
||||
|
||||
// no validation rules for IdTokenRoleAssertion
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -8937,6 +8959,12 @@ func (m *OIDCApplicationCreate) Validate() error {
|
||||
|
||||
// no validation rules for DevMode
|
||||
|
||||
// no validation rules for AccessTokenType
|
||||
|
||||
// no validation rules for AccessTokenRoleAssertion
|
||||
|
||||
// no validation rules for IdTokenRoleAssertion
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -9024,6 +9052,12 @@ func (m *OIDCConfigUpdate) Validate() error {
|
||||
|
||||
// no validation rules for DevMode
|
||||
|
||||
// no validation rules for AccessTokenType
|
||||
|
||||
// no validation rules for AccessTokenRoleAssertion
|
||||
|
||||
// no validation rules for IdTokenRoleAssertion
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user