Documentation ¶
Index ¶
- func AddDefaultUserGrantAction(jwt, orgId, projectId string) string
- func AddUserToIAM(jwt, userId string) (bool, error)
- func AddUserToOrg(jwt, userId string, roles []string, orgId string) (bool, error)
- func BulkAddRoleToProject(jwt, projectId string, roles []RoleRequest) error
- func CheckDefaultHumanUserUnique(jwt string) bool
- func CreateAction(jwt, orgId, name, script string, allowedToFail bool) (string, error)
- func CreateDefaultHumanUser(jwt string) (string, error)
- func CreateDefaultProject(jwt, name string, pRoleAssertion, pRoleCheck, hasProjectCheck bool, ...) (string, error)
- func GenerateIntrospectionJWT() (string, error)
- func GenerateJWTFromKey(filePath string, useId string) (string, error)
- func GenerateJWTFromKeyFile() (string, error)
- func GenerateJWTServiceUser() (string, error)
- func IntrospectToken(token string) (*types.IntrospectionResult, error)
- func ReadDefaultClientID() string
- func SetTriggerAction(jwt, orgId, flowType, triggerType string, actionIds []string) bool
- func VerifySecret(clientId, secret string) bool
- type CreateAPIAppRequest
- type CreateAPIAppResponse
- type CreateAPIKeyRequest
- type CreateAPIKeyResponse
- type CreateOIDCAppRequest
- type CreateOIDCAppResponse
- type CreateZitadelUserEmail
- type CreateZitadelUserPassword
- type CreateZitadelUserProfile
- type CreateZitadelUserRequest
- type JWT
- type OIDCAppType
- type OIDCAuthMethodType
- type OIDCGrantType
- type OIDCResponseType
- type RoleRequest
- type SecretAPIResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserToIAM ¶
func AddUserToOrg ¶
func BulkAddRoleToProject ¶
func BulkAddRoleToProject(jwt, projectId string, roles []RoleRequest) error
func CreateAction ¶
func CreateDefaultHumanUser ¶
func CreateDefaultProject ¶
func GenerateJWTFromKeyFile ¶
func GenerateJWTServiceUser ¶
func IntrospectToken ¶
func IntrospectToken(token string) (*types.IntrospectionResult, error)
func ReadDefaultClientID ¶
func ReadDefaultClientID() string
func SetTriggerAction ¶
func VerifySecret ¶
Types ¶
type CreateAPIAppRequest ¶
type CreateAPIAppResponse ¶
type CreateAPIAppResponse struct { AppId string `json:"appId"` ClientId string `json:"clientId"` ClientSecret string `json:"clientSecret"` }
func CreateAPIApp ¶
func CreateAPIApp(jwt, projectId, name string) (*CreateAPIAppResponse, error)
type CreateAPIKeyRequest ¶
type CreateAPIKeyResponse ¶
func CreateAPIKey ¶
func CreateAPIKey(jwt, projectId, appId string) (*CreateAPIKeyResponse, error)
type CreateOIDCAppRequest ¶
type CreateOIDCAppRequest struct { Name string `json:"name"` ResponseTypes []OIDCResponseType `json:"responseTypes"` GrantTypes []OIDCGrantType `json:"grantTypes"` RedirectURIs []string `json:"redirectUris"` AppType OIDCAppType `json:"appType"` AuthMethodType OIDCAuthMethodType `json:"authMethodType"` DevMode bool `json:"devMode"` AccessTokenRoleAssertion bool `json:"accessTokenRoleAssertion"` IDTokenRoleAssertion bool `json:"idTokenRoleAssertion"` IdTokenUserInfoAssertion bool `json:"idTokenUserinfoAssertion"` }
type CreateOIDCAppResponse ¶
type CreateOIDCAppResponse struct { AppId string `json:"appId"` ClientId string `json:"clientId"` ClientSecret string `json:"clientSecret"` NoneCompliant bool `json:"noneCompliant"` }
func CreateOIDCApp ¶
func CreateOIDCApp(orgId, projectId, jwt string, oidcAppRequest CreateOIDCAppRequest) (*CreateOIDCAppResponse, error)
type CreateZitadelUserEmail ¶
type CreateZitadelUserRequest ¶
type CreateZitadelUserRequest struct { Username string `json:"username"` Profile CreateZitadelUserProfile `json:"profile"` Email CreateZitadelUserEmail `json:"email"` Password CreateZitadelUserPassword `json:"password"` }
type OIDCAppType ¶
type OIDCAppType string
type OIDCAuthMethodType ¶
type OIDCAuthMethodType string
type OIDCGrantType ¶
type OIDCGrantType string
type OIDCResponseType ¶
type OIDCResponseType string
type RoleRequest ¶
type SecretAPIResponse ¶
type SecretAPIResponse struct { ClientId string `json:"ClientId"` ClientSecret string `json:"ClientSecret"` AppId string `json:"AppId"` }
func ReadDefaultAPISecret ¶
func ReadDefaultAPISecret() *SecretAPIResponse
Click to show internal directories.
Click to hide internal directories.