Documentation
¶
Index ¶
- type UIHandler
- func (h *UIHandler) AccountGet(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AddPasswordPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) ChangePasswordPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) ChangeUsernamePost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) CompleteProviderLink(ctx context.Context, linkIDStr string, provider domain.Provider, ...) error
- func (h *UIHandler) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) DisableUserPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) EmailChangeRequestPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) GoogleCallback(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) GoogleLinkStartPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) LoginPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) LoginPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) LogoutPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasskeyAuthenticateFinishPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasskeyAuthenticateOptionsPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasskeyDeletePost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasskeyRegisterFinishPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasskeyRegisterOptionsPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasskeySetupPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasswordChangePost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasswordLinkPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasswordResetPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) PasswordResetRequestPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) ProviderLinkConfirmPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) ProviderLinkConfirmPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) ProviderLinkStartPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) RefreshPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) ResendChallengePost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) RevokeOtherSessionsPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) RevokeSessionPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) SignupPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) SignupPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) SuccessfulDeletionPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) UnlinkProviderPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) VerifyChallengePage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) VerifyChallengePost(w http.ResponseWriter, r *http.Request)
- type VerifyChallengeAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UIHandler ¶
type UIHandler struct {
Auth *auth.Service
Passkeys *passkey.Service
Session *session.Service
Challenge *challenge.Service
ChallengeEnabled bool
Verification *challenge.VerificationCodeService
Limiter ratelimiter.AuthLimiter
Logger *slog.Logger
Google *google.Client
OAuthProviders oauth.OAuthProviders
AccessTTL time.Duration
RefreshTTL time.Duration
Render render.Renderer
}
func NewUIHandler ¶
func NewUIHandler(d authhandler.Deps) *UIHandler
func (*UIHandler) AccountGet ¶
func (h *UIHandler) AccountGet(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AddPasswordPage ¶ added in v0.1.17
func (h *UIHandler) AddPasswordPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminPage ¶ added in v0.1.13
func (h *UIHandler) AdminPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ChangePasswordPage ¶ added in v0.1.17
func (h *UIHandler) ChangePasswordPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ChangeUsernamePost ¶
func (h *UIHandler) ChangeUsernamePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) CompleteProviderLink ¶ added in v0.1.17
func (*UIHandler) DeleteUser ¶
func (h *UIHandler) DeleteUser(w http.ResponseWriter, r *http.Request)
func (*UIHandler) DisableUserPost ¶
func (h *UIHandler) DisableUserPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) EmailChangeRequestPost ¶ added in v0.1.15
func (h *UIHandler) EmailChangeRequestPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) GoogleCallback ¶
func (h *UIHandler) GoogleCallback(w http.ResponseWriter, r *http.Request)
func (*UIHandler) GoogleLinkStartPost ¶ added in v0.1.17
func (h *UIHandler) GoogleLinkStartPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) LogoutPost ¶
func (h *UIHandler) LogoutPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyAuthenticateFinishPost ¶ added in v0.1.21
func (h *UIHandler) PasskeyAuthenticateFinishPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyAuthenticateOptionsPost ¶ added in v0.1.21
func (h *UIHandler) PasskeyAuthenticateOptionsPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyDeletePost ¶ added in v0.1.21
func (h *UIHandler) PasskeyDeletePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyRegisterFinishPost ¶ added in v0.1.21
func (h *UIHandler) PasskeyRegisterFinishPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyRegisterOptionsPost ¶ added in v0.1.21
func (h *UIHandler) PasskeyRegisterOptionsPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeySetupPage ¶ added in v0.1.21
func (h *UIHandler) PasskeySetupPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordChangePost ¶ added in v0.1.17
func (h *UIHandler) PasswordChangePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordLinkPost ¶ added in v0.1.17
func (h *UIHandler) PasswordLinkPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordResetPage ¶ added in v0.1.14
func (h *UIHandler) PasswordResetPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordResetRequestPost ¶ added in v0.1.14
func (h *UIHandler) PasswordResetRequestPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ProviderLinkConfirmPage ¶ added in v0.1.19
func (h *UIHandler) ProviderLinkConfirmPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ProviderLinkConfirmPost ¶ added in v0.1.19
func (h *UIHandler) ProviderLinkConfirmPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ProviderLinkStartPost ¶ added in v0.1.17
func (h *UIHandler) ProviderLinkStartPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RefreshPost ¶
func (h *UIHandler) RefreshPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ResendChallengePost ¶ added in v0.1.12
func (h *UIHandler) ResendChallengePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RevokeOtherSessionsPost ¶ added in v0.1.16
func (h *UIHandler) RevokeOtherSessionsPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RevokeSessionPost ¶ added in v0.1.16
func (h *UIHandler) RevokeSessionPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) SignupPage ¶
func (h *UIHandler) SignupPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) SignupPost ¶
func (h *UIHandler) SignupPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) SuccessfulDeletionPage ¶ added in v0.1.20
func (h *UIHandler) SuccessfulDeletionPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) UnlinkProviderPost ¶ added in v0.1.17
func (h *UIHandler) UnlinkProviderPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) VerifyChallengePage ¶ added in v0.1.12
func (h *UIHandler) VerifyChallengePage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) VerifyChallengePost ¶ added in v0.1.12
func (h *UIHandler) VerifyChallengePost(w http.ResponseWriter, r *http.Request)
type VerifyChallengeAction ¶ added in v0.1.14
type VerifyChallengeAction string
const ( VerifyChallengeActionSignup VerifyChallengeAction = "signup" VerifyChallengeActionPasswordReset VerifyChallengeAction = "password-reset" VerifyChallengeActionEmailChange VerifyChallengeAction = "email-change" )
func (VerifyChallengeAction) Header ¶ added in v0.1.14
func (a VerifyChallengeAction) Header() string
func (VerifyChallengeAction) Path ¶ added in v0.1.14
func (a VerifyChallengeAction) Path() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.