Documentation ¶
Index ¶
Constants ¶
View Source
const ( LowerCaseRegex = `[a-z]` UpperCaseRegex = `[A-Z]` NumberRegex = `[0-9]` SymbolRegex = `[^A-Za-z0-9]` )
View Source
const ( EndpointRoot = "/" EndpointHealthz = "/healthz" EndpointReadiness = "/ready" EndpointLogin = "/login" EndpointExternalLogin = "/login/externalidp" EndpointExternalLoginCallback = "/login/externalidp/callback" EndpointJWTAuthorize = "/login/jwt/authorize" EndpointJWTCallback = "/login/jwt/callback" EndpointPasswordlessLogin = "/login/passwordless" EndpointPasswordlessRegistration = "/login/passwordless/init" EndpointPasswordlessPrompt = "/login/passwordless/prompt" EndpointLoginName = "/loginname" EndpointUserSelection = "/userselection" EndpointChangeUsername = "/username/change" EndpointPassword = "/password" EndpointInitPassword = "/password/init" EndpointChangePassword = "/password/change" EndpointPasswordReset = "/password/reset" EndpointInitUser = "/user/init" EndpointMFAVerify = "/mfa/verify" EndpointMFAPrompt = "/mfa/prompt" EndpointMFAInitVerify = "/mfa/init/verify" EndpointMFAInitU2FVerify = "/mfa/init/u2f/verify" EndpointU2FVerification = "/mfa/u2f/verify" EndpointMailVerification = "/mail/verification" EndpointMailVerified = "/mail/verified" EndpointRegisterOption = "/register/option" EndpointRegister = "/register" EndpointExternalRegister = "/register/externalidp" EndpointExternalRegisterCallback = "/register/externalidp/callback" EndpointRegisterOrg = "/register/org" EndpointLogoutDone = "/logout/done" EndpointLoginSuccess = "/login/success" EndpointExternalNotFoundOption = "/externaluser/option" EndpointResources = "/resources" EndpointDynamicResources = "/resources/dynamic" )
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
func CreateRouter(login *Login, staticDir http.FileSystem, interceptors ...mux.MiddlewareFunc) *mux.Router
Types ¶
type Config ¶
type Config struct { BaseURL string OidcAuthCallbackURL string ZitadelURL string LanguageCookieName string DefaultLanguage language.Tag CSRF CSRF UserAgentCookieConfig *middleware.UserAgentCookieConfig Cache middleware.CacheConfig StaticCache cache_config.CacheConfig }
type LanguageData ¶
type LanguageData struct {
Lang string
}
type Login ¶
type Login struct { IDPConfigAesCrypto crypto.EncryptionAlgorithm // contains filtered or unexported fields }
func CreateLogin ¶
func CreateLogin(config Config, command *command.Commands, query *query.Queries, authRepo *eventsourcing.EsRepository, staticStorage static.Storage, systemDefaults systemdefaults.SystemDefaults, localDevMode bool) (*Login, string)
Source Files ¶
- auth_request.go
- change_password_handler.go
- custom_action.go
- external_login_handler.go
- external_register_handler.go
- health_handler.go
- init_password_handler.go
- init_user_handler.go
- jwt_handler.go
- link_users_handler.go
- login.go
- login_handler.go
- login_success_handler.go
- logout_handler.go
- mail_verify_handler.go
- mfa_init_done_handler.go
- mfa_init_u2f.go
- mfa_init_verify_handler.go
- mfa_prompt_handler.go
- mfa_verify_handler.go
- mfa_verify_u2f_handler.go
- password_complexity_policy_handler.go
- password_handler.go
- password_reset_handler.go
- passwordless_login_handler.go
- passwordless_prompt_handler.go
- passwordless_registration_handler.go
- policy_handler.go
- register_handler.go
- register_option_handler.go
- register_org_handler.go
- renderer.go
- resources_handler.go
- router.go
- select_user_handler.go
- username_change_handler.go
- webauthn.go
Click to show internal directories.
Click to hide internal directories.