Documentation
¶
Index ¶
Constants ¶
View Source
const ( TmplAuthorizedClients = "authorized-clients.html.tpl" TmplChangePassword = "change-password.html.tpl" TmplCreatePassword = "create-password.html.tpl" TmplLogin = "login.html.tpl" TmplLogout = "logout.html.tpl" TmplOAuth2AuthorizeClient = "oauth2-authorize-client.html.tpl" TmplRequestPasswordReset = "request-password-reset.html.tpl" TmplPasswordResetRequested = "password-reset-requested.html.tpl" TmplResetPassword = "reset-password.html.tpl" TmplInvite = "invite.html.tpl" TmplSecurity = "security.html.tpl" TmplProfile = "profile.html.tpl" TmplSessions = "sessions.html.tpl" TmplSignup = "signup.html.tpl" TmplPendingEmailConfirmation = "pending-email-confirmation.html.tpl" TmplMfa = "mfa.html.tpl" TmplMfaTotp = "mfa-totp.html.tpl" TmplMfaTotpDisable = "mfa-totp-disable.html.tpl" TmplInternalError = "error-internal.html.tpl" )
Variables ¶
View Source
var ( BasePath string = "/" WebappBasePath string = "/" )
Functions ¶
Types ¶
type AuthHandlers ¶
type AuthHandlers struct {
Log *zap.Logger
Locale localeService
Templates templateExecutor
OAuth2 oauth2Service
SessionManager *request.SessionManager
AuthService authService
CredentialsService credentialsService
UserService userService
ClientService clientService
TokenService tokenService
DefaultClient *types.AuthClient
Opt options.AuthOpt
Settings *settings.Settings
SamlSPService *saml.SamlSPService
Attachment service.AttachmentService
}
func (*AuthHandlers) MountHttpRoutes ¶
func (h *AuthHandlers) MountHttpRoutes(r chi.Router)
type Links ¶
type Links struct {
Profile,
Signup,
ConfirmEmail,
PendingEmailConfirmation,
Login,
Security,
ChangePassword,
CreatePassword,
RequestPasswordReset,
PasswordResetRequested,
ResetPassword,
AcceptInvite,
Sessions,
AuthorizedClients,
Logout,
OAuth2Authorize,
OAuth2AuthorizeClient,
OAuth2Token,
OAuth2Info,
OAuth2UserInfo,
OAuth2DefaultClient,
OAuth2PublicKeys,
Mfa,
MfaTotpNewSecret,
MfaTotpQRImage,
MfaTotpDisable,
External,
SamlInit,
SamlCallback,
SamlMetadata,
SamlLogout,
Base,
Assets,
AuthAssets string
}
Source Files
¶
- handle_authorized-clients.go
- handle_change-password.go
- handle_create-password.go
- handle_dev.go
- handle_external.go
- handle_invite.go
- handle_login.go
- handle_logout.go
- handle_mfa.go
- handle_mfa_totp.go
- handle_oauth2.go
- handle_password-reset.go
- handle_profile.go
- handle_saml.go
- handle_security.go
- handle_sessions.go
- handle_signup.go
- handler.go
- links.go
- routes.go
Click to show internal directories.
Click to hide internal directories.