handlers

package
v0.0.0-...-1b8de1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

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

func SubSplit

func SubSplit(ti oauth2def.TokenInfo, data map[string]interface{})

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 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
}
func GetLinks() Links

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL