Documentation ¶
Index ¶
- Constants
- Variables
- func CreateRouter(login *Login, staticDir http.FileSystem, interceptors ...mux.MiddlewareFunc) *mux.Router
- func InitPasswordLink(origin, userID, code, orgID string) string
- func InitUserLink(origin, userID, code, orgID string, passwordSet bool) string
- func LoginLink(origin, orgID string) string
- func MailVerificationLink(origin, userID, code, orgID string) string
- type Config
- type LanguageData
- type Login
- type Renderer
Constants ¶
View Source
const ( HandlerPrefix = "/ui/login" DefaultLoggedOutPath = HandlerPrefix + EndpointLogoutDone )
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" )
View Source
const (
QueryAuthRequestID = "authRequestID"
)
Variables ¶
View Source
var ( IgnoreInstanceEndpoints = []string{ EndpointResources + "/fonts", EndpointResources + "/images", EndpointResources + "/scripts", EndpointResources + "/themes", } )
Functions ¶
func CreateRouter ¶
func CreateRouter(login *Login, staticDir http.FileSystem, interceptors ...mux.MiddlewareFunc) *mux.Router
func InitPasswordLink ¶
func InitUserLink ¶
func MailVerificationLink ¶
Types ¶
type Config ¶
type Config struct { LanguageCookieName string CSRFCookieName string Cache middleware.CacheConfig AssetCache middleware.CacheConfig }
type LanguageData ¶
type LanguageData struct {
Lang string
}
type Login ¶
type Login struct {
// contains filtered or unexported fields
}
func CreateLogin ¶
func CreateLogin(config Config, command *command.Commands, query *query.Queries, authRepo *eventsourcing.EsRepository, staticStorage static.Storage, consolePath string, oidcAuthCallbackURL func(context.Context, string) string, samlAuthCallbackURL func(context.Context, string) string, externalSecure bool, userAgentCookie, issuerInterceptor, oidcInstanceHandler, samlInstanceHandler mux.MiddlewareFunc, assetCache mux.MiddlewareFunc, userCodeAlg crypto.EncryptionAlgorithm, idpConfigAlg crypto.EncryptionAlgorithm, csrfCookieKey []byte, ) (*Login, error)
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.