Documentation ¶
Overview ¶
Package handlers contains various web handlers for the authenticate service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceEnrolled ¶
func DeviceEnrolled(data UserInfoData) http.Handler
DeviceEnrolled displays an HTML page informing the user that they've successfully enrolled a device.
func SignOutConfirm ¶
func SignOutConfirm(data SignOutConfirmData) http.Handler
SignOutConfirm returns a handler that renders the sign out confirm page.
func UserInfo ¶
func UserInfo(data UserInfoData) http.Handler
UserInfo returns a handler that renders the user info page.
Types ¶
type SignOutConfirmData ¶
type SignOutConfirmData struct {
URL string
}
SignOutConfirmData is the data for the SignOutConfirm page.
func (SignOutConfirmData) ToJSON ¶
func (data SignOutConfirmData) ToJSON() map[string]interface{}
ToJSON converts the data into a JSON map.
type UserInfoData ¶
type UserInfoData struct { CSRFToken string IsImpersonated bool Session *session.Session User *user.User IsEnterprise bool DirectoryUser *directory.User DirectoryGroups []*directory.Group WebAuthnCreationOptions *webauthn.PublicKeyCredentialCreationOptions WebAuthnRequestOptions *webauthn.PublicKeyCredentialRequestOptions WebAuthnURL string BrandingOptions httputil.BrandingOptions }
UserInfoData is the data for the UserInfo page.
func (UserInfoData) ToJSON ¶
func (data UserInfoData) ToJSON() map[string]any
ToJSON converts the data into a JSON map.
Click to show internal directories.
Click to hide internal directories.