Documentation ¶
Index ¶
- type APIAuthMethodType
- type APIConfig
- func (c *APIConfig) GenerateClientSecretIfNeeded(generator crypto.Generator) (string, error)
- func (c *APIConfig) GenerateNewClientID(idGenerator id.Generator, project *Project) error
- func (c *APIConfig) GenerateNewClientSecret(generator crypto.Generator) (string, error)
- func (c *APIConfig) IsValid() bool
- type AppState
- type AppType
- type Application
- type Compliance
- type OIDCApplicationType
- type OIDCAuthMethodType
- type OIDCConfig
- func (c *OIDCConfig) FillCompliance()
- func (c *OIDCConfig) GenerateClientSecretIfNeeded(generator crypto.Generator) (string, error)
- func (c *OIDCConfig) GenerateNewClientID(idGenerator id.Generator, project *Project) error
- func (c *OIDCConfig) GenerateNewClientSecret(generator crypto.Generator) (string, error)
- func (c *OIDCConfig) IsValid() bool
- type OIDCGrantType
- type OIDCResponseType
- type OIDCTokenType
- type OIDCVersion
- type OrgProjectMapping
- type OrgProjectMappingViewSearchKey
- type OrgProjectMappingViewSearchQuery
- type OrgProjectMappingViewSearchRequest
- type OrgProjectMappingViewSearchResponse
- type Project
- func (p *Project) ContainsGrantForOrg(orgID string) bool
- func (p *Project) ContainsGrantMember(member *ProjectGrantMember) bool
- func (p *Project) ContainsRole(role *ProjectRole) bool
- func (p *Project) ContainsRoles(roleKeys []string) bool
- func (p *Project) GetApp(appID string) (int, *Application)
- func (p *Project) GetGrant(grantID string) (int, *ProjectGrant)
- func (p *Project) IsActive() bool
- func (p *Project) IsValid() bool
- type ProjectGrant
- type ProjectGrantIDs
- type ProjectGrantMember
- type ProjectGrantMemberSearchKey
- type ProjectGrantMemberSearchQuery
- type ProjectGrantMemberSearchRequest
- type ProjectGrantMemberSearchResponse
- type ProjectGrantMemberView
- type ProjectGrantState
- type ProjectGrantView
- type ProjectGrantViewSearchKey
- type ProjectGrantViewSearchQuery
- type ProjectGrantViewSearchRequest
- func (r *ProjectGrantViewSearchRequest) AppendMyOrgQuery(orgID string)
- func (r *ProjectGrantViewSearchRequest) AppendMyResourceOwnerQuery(orgID string)
- func (r *ProjectGrantViewSearchRequest) AppendNotMyOrgQuery(orgID string)
- func (r *ProjectGrantViewSearchRequest) EnsureLimit(limit uint64) error
- func (r *ProjectGrantViewSearchRequest) GetSearchQuery(key ProjectGrantViewSearchKey) (int, *ProjectGrantViewSearchQuery)
- type ProjectGrantViewSearchResponse
- type ProjectMember
- type ProjectMemberSearchKey
- type ProjectMemberSearchQuery
- type ProjectMemberSearchRequest
- type ProjectMemberSearchResponse
- type ProjectMemberView
- type ProjectRole
- type ProjectRoleSearchKey
- type ProjectRoleSearchQuery
- type ProjectRoleSearchRequest
- type ProjectRoleSearchResponse
- type ProjectRoleView
- type ProjectState
- type ProjectView
- type ProjectViewSearchKey
- type ProjectViewSearchQuery
- type ProjectViewSearchRequest
- type ProjectViewSearchResponse
- type SAMLConfig
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAuthMethodType ¶
type APIAuthMethodType int32
const ( APIAuthMethodTypeBasic APIAuthMethodType = iota APIAuthMethodTypePrivateKeyJWT )
type APIConfig ¶
type APIConfig struct { es_models.ObjectRoot AppID string ClientID string ClientSecret *crypto.CryptoValue ClientSecretString string AuthMethodType APIAuthMethodType }
func (*APIConfig) GenerateClientSecretIfNeeded ¶
func (*APIConfig) GenerateNewClientID ¶
ClientID random_number@projectname (eg. 495894098234@zitadel)
func (*APIConfig) GenerateNewClientSecret ¶
type Application ¶
type Application struct { es_models.ObjectRoot AppID string State AppState Name string Type AppType OIDCConfig *OIDCConfig APIConfig *APIConfig SAMLConfig *SAMLConfig }
func (*Application) IsValid ¶
func (a *Application) IsValid(includeConfig bool) bool
type Compliance ¶
func GetOIDCCompliance ¶
func GetOIDCCompliance(version OIDCVersion, appType OIDCApplicationType, grantTypes []OIDCGrantType, responseTypes []OIDCResponseType, authMethod OIDCAuthMethodType, redirectUris []string) *Compliance
type OIDCApplicationType ¶
type OIDCApplicationType int32
const ( OIDCApplicationTypeWeb OIDCApplicationType = iota OIDCApplicationTypeUserAgent OIDCApplicationTypeNative )
type OIDCAuthMethodType ¶
type OIDCAuthMethodType int32
const ( OIDCAuthMethodTypeBasic OIDCAuthMethodType = iota OIDCAuthMethodTypePost OIDCAuthMethodTypeNone OIDCAuthMethodTypePrivateKeyJWT )
type OIDCConfig ¶
type OIDCConfig struct { es_models.ObjectRoot AppID string ClientID string ClientSecret *crypto.CryptoValue ClientSecretString string RedirectUris []string ResponseTypes []OIDCResponseType GrantTypes []OIDCGrantType ApplicationType OIDCApplicationType AuthMethodType OIDCAuthMethodType PostLogoutRedirectUris []string OIDCVersion OIDCVersion Compliance *Compliance DevMode bool AccessTokenType OIDCTokenType AccessTokenRoleAssertion bool IDTokenRoleAssertion bool IDTokenUserinfoAssertion bool ClockSkew time.Duration }
func (*OIDCConfig) FillCompliance ¶
func (c *OIDCConfig) FillCompliance()
func (*OIDCConfig) GenerateClientSecretIfNeeded ¶
func (c *OIDCConfig) GenerateClientSecretIfNeeded(generator crypto.Generator) (string, error)
func (*OIDCConfig) GenerateNewClientID ¶
func (c *OIDCConfig) GenerateNewClientID(idGenerator id.Generator, project *Project) error
ClientID random_number@projectname (eg. 495894098234@zitadel)
func (*OIDCConfig) GenerateNewClientSecret ¶
func (c *OIDCConfig) GenerateNewClientSecret(generator crypto.Generator) (string, error)
func (*OIDCConfig) IsValid ¶
func (c *OIDCConfig) IsValid() bool
type OIDCGrantType ¶
type OIDCGrantType int32
const ( OIDCGrantTypeAuthorizationCode OIDCGrantType = iota OIDCGrantTypeImplicit OIDCGrantTypeRefreshToken )
type OIDCResponseType ¶
type OIDCResponseType int32
const ( OIDCResponseTypeCode OIDCResponseType = iota OIDCResponseTypeIDToken OIDCResponseTypeIDTokenToken )
type OIDCTokenType ¶
type OIDCTokenType int32
const ( OIDCTokenTypeBearer OIDCTokenType = iota OIDCTokenTypeJWT )
type OrgProjectMapping ¶
type OrgProjectMappingViewSearchKey ¶
type OrgProjectMappingViewSearchKey int32
const ( OrgProjectMappingSearchKeyUnspecified OrgProjectMappingViewSearchKey = iota OrgProjectMappingSearchKeyProjectID OrgProjectMappingSearchKeyOrgID OrgProjectMappingSearchKeyProjectGrantID OrgProjectMappingSearchKeyInstanceID )
type OrgProjectMappingViewSearchQuery ¶
type OrgProjectMappingViewSearchQuery struct { Key OrgProjectMappingViewSearchKey Method domain.SearchMethod Value interface{} }
type OrgProjectMappingViewSearchRequest ¶
type OrgProjectMappingViewSearchRequest struct { Offset uint64 Limit uint64 SortingColumn OrgProjectMappingViewSearchKey Asc bool Queries []*OrgProjectMappingViewSearchQuery }
func (*OrgProjectMappingViewSearchRequest) GetSearchQuery ¶
func (r *OrgProjectMappingViewSearchRequest) GetSearchQuery(key OrgProjectMappingViewSearchKey) (int, *OrgProjectMappingViewSearchQuery)
type Project ¶
type Project struct { es_models.ObjectRoot State ProjectState Name string Members []*ProjectMember Roles []*ProjectRole Applications []*Application Grants []*ProjectGrant ProjectRoleAssertion bool ProjectRoleCheck bool HasProjectCheck bool PrivateLabelingSetting domain.PrivateLabelingSetting }
func (*Project) ContainsGrantForOrg ¶
func (*Project) ContainsGrantMember ¶
func (p *Project) ContainsGrantMember(member *ProjectGrantMember) bool
func (*Project) ContainsRole ¶
func (p *Project) ContainsRole(role *ProjectRole) bool
func (*Project) ContainsRoles ¶
type ProjectGrant ¶
type ProjectGrant struct { es_models.ObjectRoot GrantID string GrantedOrgID string State ProjectGrantState RoleKeys []string Members []*ProjectGrantMember }
func NewProjectGrant ¶
func NewProjectGrant(projectID, grantID string) *ProjectGrant
func (*ProjectGrant) GetMember ¶
func (p *ProjectGrant) GetMember(userID string) (int, *ProjectGrantMember)
func (*ProjectGrant) GetRemovedRoles ¶
func (p *ProjectGrant) GetRemovedRoles(roleKeys []string) []string
func (*ProjectGrant) IsActive ¶
func (p *ProjectGrant) IsActive() bool
func (*ProjectGrant) IsValid ¶
func (p *ProjectGrant) IsValid() bool
type ProjectGrantIDs ¶
type ProjectGrantMember ¶
type ProjectGrantMember struct { es_models.ObjectRoot GrantID string UserID string Roles []string }
func NewProjectGrantMember ¶
func NewProjectGrantMember(projectID, grantID, userID string) *ProjectGrantMember
func (*ProjectGrantMember) IsValid ¶
func (p *ProjectGrantMember) IsValid() bool
type ProjectGrantMemberSearchKey ¶
type ProjectGrantMemberSearchKey int32
const ( ProjectGrantMemberSearchKeyUnspecified ProjectGrantMemberSearchKey = iota ProjectGrantMemberSearchKeyUserName ProjectGrantMemberSearchKeyEmail ProjectGrantMemberSearchKeyFirstName ProjectGrantMemberSearchKeyLastName ProjectGrantMemberSearchKeyGrantID ProjectGrantMemberSearchKeyUserID ProjectGrantMemberSearchKeyProjectID )
type ProjectGrantMemberSearchQuery ¶
type ProjectGrantMemberSearchQuery struct { Key ProjectGrantMemberSearchKey Method domain.SearchMethod Value interface{} }
type ProjectGrantMemberSearchRequest ¶
type ProjectGrantMemberSearchRequest struct { Offset uint64 Limit uint64 SortingColumn ProjectGrantMemberSearchKey Asc bool Queries []*ProjectGrantMemberSearchQuery }
func (*ProjectGrantMemberSearchRequest) EnsureLimit ¶
func (r *ProjectGrantMemberSearchRequest) EnsureLimit(limit uint64) error
type ProjectGrantMemberView ¶
type ProjectGrantMemberView struct { UserID string GrantID string ProjectID string UserName string Email string FirstName string LastName string DisplayName string PreferredLoginName string AvatarURL string UserResourceOwner string Roles []string CreationDate time.Time ChangeDate time.Time Sequence uint64 }
type ProjectGrantState ¶
type ProjectGrantState int32
const ( ProjectGrantStateActive ProjectGrantState = iota ProjectGrantStateInactive )
type ProjectGrantView ¶
type ProjectGrantViewSearchKey ¶
type ProjectGrantViewSearchKey int32
const ( GrantedProjectSearchKeyUnspecified ProjectGrantViewSearchKey = iota GrantedProjectSearchKeyName GrantedProjectSearchKeyProjectID GrantedProjectSearchKeyGrantID GrantedProjectSearchKeyOrgID GrantedProjectSearchKeyResourceOwner GrantedProjectSearchKeyRoleKeys )
type ProjectGrantViewSearchQuery ¶
type ProjectGrantViewSearchQuery struct { Key ProjectGrantViewSearchKey Method domain.SearchMethod Value interface{} }
type ProjectGrantViewSearchRequest ¶
type ProjectGrantViewSearchRequest struct { Offset uint64 Limit uint64 SortingColumn ProjectGrantViewSearchKey Asc bool Queries []*ProjectGrantViewSearchQuery }
func (*ProjectGrantViewSearchRequest) AppendMyOrgQuery ¶
func (r *ProjectGrantViewSearchRequest) AppendMyOrgQuery(orgID string)
func (*ProjectGrantViewSearchRequest) AppendMyResourceOwnerQuery ¶
func (r *ProjectGrantViewSearchRequest) AppendMyResourceOwnerQuery(orgID string)
func (*ProjectGrantViewSearchRequest) AppendNotMyOrgQuery ¶
func (r *ProjectGrantViewSearchRequest) AppendNotMyOrgQuery(orgID string)
func (*ProjectGrantViewSearchRequest) EnsureLimit ¶
func (r *ProjectGrantViewSearchRequest) EnsureLimit(limit uint64) error
func (*ProjectGrantViewSearchRequest) GetSearchQuery ¶
func (r *ProjectGrantViewSearchRequest) GetSearchQuery(key ProjectGrantViewSearchKey) (int, *ProjectGrantViewSearchQuery)
type ProjectMember ¶
type ProjectMember struct { es_models.ObjectRoot UserID string Roles []string }
func NewProjectMember ¶
func NewProjectMember(projectID, userID string) *ProjectMember
func (*ProjectMember) IsValid ¶
func (p *ProjectMember) IsValid() bool
type ProjectMemberSearchKey ¶
type ProjectMemberSearchKey int32
const ( ProjectMemberSearchKeyUnspecified ProjectMemberSearchKey = iota ProjectMemberSearchKeyUserName ProjectMemberSearchKeyEmail ProjectMemberSearchKeyFirstName ProjectMemberSearchKeyLastName ProjectMemberSearchKeyProjectID ProjectMemberSearchKeyUserID )
type ProjectMemberSearchQuery ¶
type ProjectMemberSearchQuery struct { Key ProjectMemberSearchKey Method domain.SearchMethod Value interface{} }
type ProjectMemberSearchRequest ¶
type ProjectMemberSearchRequest struct { Offset uint64 Limit uint64 SortingColumn ProjectMemberSearchKey Asc bool Queries []*ProjectMemberSearchQuery }
func (*ProjectMemberSearchRequest) AppendProjectQuery ¶
func (r *ProjectMemberSearchRequest) AppendProjectQuery(projectID string)
func (*ProjectMemberSearchRequest) EnsureLimit ¶
func (r *ProjectMemberSearchRequest) EnsureLimit(limit uint64) error
type ProjectMemberView ¶
type ProjectRole ¶
type ProjectRole struct { es_models.ObjectRoot Key string DisplayName string Group string }
func (*ProjectRole) IsValid ¶
func (p *ProjectRole) IsValid() bool
type ProjectRoleSearchKey ¶
type ProjectRoleSearchKey int32
const ( ProjectRoleSearchKeyUnspecified ProjectRoleSearchKey = iota ProjectRoleSearchKeyKey ProjectRoleSearchKeyProjectID ProjectRoleSearchKeyOrgID ProjectRoleSearchKeyResourceOwner ProjectRoleSearchKeyDisplayName )
type ProjectRoleSearchQuery ¶
type ProjectRoleSearchQuery struct { Key ProjectRoleSearchKey Method domain.SearchMethod Value interface{} }
type ProjectRoleSearchRequest ¶
type ProjectRoleSearchRequest struct { Offset uint64 Limit uint64 SortingColumn ProjectRoleSearchKey Asc bool Queries []*ProjectRoleSearchQuery }
func (*ProjectRoleSearchRequest) AppendMyOrgQuery ¶
func (r *ProjectRoleSearchRequest) AppendMyOrgQuery(orgID string)
func (*ProjectRoleSearchRequest) AppendProjectQuery ¶
func (r *ProjectRoleSearchRequest) AppendProjectQuery(projectID string)
func (*ProjectRoleSearchRequest) AppendRoleKeysQuery ¶
func (r *ProjectRoleSearchRequest) AppendRoleKeysQuery(keys []string)
func (*ProjectRoleSearchRequest) EnsureLimit ¶
func (r *ProjectRoleSearchRequest) EnsureLimit(limit uint64) error
type ProjectRoleView ¶
type ProjectState ¶
type ProjectState int32
const ( ProjectStateActive ProjectState = iota ProjectStateInactive ProjectStateRemoved )
type ProjectView ¶
type ProjectViewSearchKey ¶
type ProjectViewSearchKey int32
const ( ProjectViewSearchKeyUnspecified ProjectViewSearchKey = iota ProjectViewSearchKeyName ProjectViewSearchKeyProjectID ProjectViewSearchKeyResourceOwner )
type ProjectViewSearchQuery ¶
type ProjectViewSearchQuery struct { Key ProjectViewSearchKey Method domain.SearchMethod Value interface{} }
type ProjectViewSearchRequest ¶
type ProjectViewSearchRequest struct { Offset uint64 Limit uint64 SortingColumn ProjectViewSearchKey Asc bool Queries []*ProjectViewSearchQuery }
func (*ProjectViewSearchRequest) AppendMyResourceOwnerQuery ¶
func (r *ProjectViewSearchRequest) AppendMyResourceOwnerQuery(orgID string)
func (*ProjectViewSearchRequest) EnsureLimit ¶
func (r *ProjectViewSearchRequest) EnsureLimit(limit uint64) error
func (*ProjectViewSearchRequest) GetSearchQuery ¶
func (r *ProjectViewSearchRequest) GetSearchQuery(key ProjectViewSearchKey) (int, *ProjectViewSearchQuery)
type SAMLConfig ¶
type SAMLConfig struct { es_models.ObjectRoot AppID string Metadata []byte MetadataURL string }
func (*SAMLConfig) IsValid ¶
func (c *SAMLConfig) IsValid() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.