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) AdminAllowlistCreatePost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminAllowlistDeletePost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminAllowlistPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminAllowlistResultsGet(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminAuditPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminFailuresPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminUserDetailPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminUserSearchGet(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) AdminUsersPage(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) EnableUserPost(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) GrantAdminPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) InvitationAcceptPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) InvitationAcceptPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) InvitationLoginPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) InvitationLoginPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) InvitationSignupPage(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) InvitationSignupPost(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) RevokeAdminPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) RevokeAdminUserSessionPost(w http.ResponseWriter, r *http.Request)
- func (h *UIHandler) RevokeAllAdminUserSessionsPost(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 {
Admin *admin.Service
Auth *auth.Service
Passkeys *passkey.Service
Session *session.Service
Organizations *organization.Service
Challenge *challenge.Service
Features features.Features
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 New ¶
func New( admin *admin.Service, auth *auth.Service, passkeys *passkey.Service, session *session.Service, organizations *organization.Service, challenge *challenge.Service, features features.Features, verification *challenge.VerificationCodeService, limiter ratelimiter.AuthLimiter, logger *slog.Logger, google *google.Client, oauthProviders oauth.OAuthProviders, accessTTL time.Duration, refreshTTL time.Duration, renderer render.Renderer, ) *UIHandler
func (*UIHandler) AccountGet ¶
func (h *UIHandler) AccountGet(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AddPasswordPage ¶
func (h *UIHandler) AddPasswordPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminAllowlistCreatePost ¶
func (h *UIHandler) AdminAllowlistCreatePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminAllowlistDeletePost ¶
func (h *UIHandler) AdminAllowlistDeletePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminAllowlistPage ¶
func (h *UIHandler) AdminAllowlistPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminAllowlistResultsGet ¶
func (h *UIHandler) AdminAllowlistResultsGet(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminAuditPage ¶
func (h *UIHandler) AdminAuditPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminFailuresPage ¶
func (h *UIHandler) AdminFailuresPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminUserDetailPage ¶
func (h *UIHandler) AdminUserDetailPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminUserSearchGet ¶
func (h *UIHandler) AdminUserSearchGet(w http.ResponseWriter, r *http.Request)
func (*UIHandler) AdminUsersPage ¶
func (h *UIHandler) AdminUsersPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ChangePasswordPage ¶
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 ¶
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 ¶
func (h *UIHandler) EmailChangeRequestPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) EnableUserPost ¶
func (h *UIHandler) EnableUserPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) GoogleCallback ¶
func (h *UIHandler) GoogleCallback(w http.ResponseWriter, r *http.Request)
func (*UIHandler) GoogleLinkStartPost ¶
func (h *UIHandler) GoogleLinkStartPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) GrantAdminPost ¶
func (h *UIHandler) GrantAdminPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) InvitationAcceptPage ¶
func (h *UIHandler) InvitationAcceptPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) InvitationAcceptPost ¶
func (h *UIHandler) InvitationAcceptPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) InvitationLoginPage ¶
func (h *UIHandler) InvitationLoginPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) InvitationLoginPost ¶
func (h *UIHandler) InvitationLoginPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) InvitationSignupPage ¶
func (h *UIHandler) InvitationSignupPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) InvitationSignupPost ¶
func (h *UIHandler) InvitationSignupPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) LogoutPost ¶
func (h *UIHandler) LogoutPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyAuthenticateFinishPost ¶
func (h *UIHandler) PasskeyAuthenticateFinishPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyAuthenticateOptionsPost ¶
func (h *UIHandler) PasskeyAuthenticateOptionsPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyDeletePost ¶
func (h *UIHandler) PasskeyDeletePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyRegisterFinishPost ¶
func (h *UIHandler) PasskeyRegisterFinishPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeyRegisterOptionsPost ¶
func (h *UIHandler) PasskeyRegisterOptionsPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasskeySetupPage ¶
func (h *UIHandler) PasskeySetupPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordChangePost ¶
func (h *UIHandler) PasswordChangePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordLinkPost ¶
func (h *UIHandler) PasswordLinkPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordResetPage ¶
func (h *UIHandler) PasswordResetPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) PasswordResetRequestPost ¶
func (h *UIHandler) PasswordResetRequestPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ProviderLinkConfirmPage ¶
func (h *UIHandler) ProviderLinkConfirmPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ProviderLinkConfirmPost ¶
func (h *UIHandler) ProviderLinkConfirmPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) ProviderLinkStartPost ¶
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 ¶
func (h *UIHandler) ResendChallengePost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RevokeAdminPost ¶
func (h *UIHandler) RevokeAdminPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RevokeAdminUserSessionPost ¶
func (h *UIHandler) RevokeAdminUserSessionPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RevokeAllAdminUserSessionsPost ¶
func (h *UIHandler) RevokeAllAdminUserSessionsPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RevokeOtherSessionsPost ¶
func (h *UIHandler) RevokeOtherSessionsPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) RevokeSessionPost ¶
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 ¶
func (h *UIHandler) SuccessfulDeletionPage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) UnlinkProviderPost ¶
func (h *UIHandler) UnlinkProviderPost(w http.ResponseWriter, r *http.Request)
func (*UIHandler) VerifyChallengePage ¶
func (h *UIHandler) VerifyChallengePage(w http.ResponseWriter, r *http.Request)
func (*UIHandler) VerifyChallengePost ¶
func (h *UIHandler) VerifyChallengePost(w http.ResponseWriter, r *http.Request)
type VerifyChallengeAction ¶
type VerifyChallengeAction string
const ( VerifyChallengeActionSignup VerifyChallengeAction = "signup" VerifyChallengeActionPasswordReset VerifyChallengeAction = "password-reset" VerifyChallengeActionEmailChange VerifyChallengeAction = "email-change" )
func (VerifyChallengeAction) Header ¶
func (a VerifyChallengeAction) Header() string
func (VerifyChallengeAction) Path ¶
func (a VerifyChallengeAction) Path() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.