Versions in this module Expand all Collapse all v0 v0.1.7 Jun 2, 2026 Changes in this version + func Request(method string, postKeyValues ...string) *http.Request + type AfterCallback struct + Fn authboss.EventHandler + HasBeenCalled bool + func NewAfterCallback() *AfterCallback + type ArbValues struct + Errors []error + Values map[string]string + func (a ArbValues) GetPID() string + func (a ArbValues) GetPassword() string + func (a ArbValues) GetValues() map[string]string + func (a ArbValues) Validate() []error + type BodyReader struct + Return authboss.Validator + func (b BodyReader) Read(page string, r *http.Request) (authboss.Validator, error) + type ClientState struct + GetShouldFail bool + Values map[string]string + func NewClientState(data ...string) *ClientState + func (m *ClientState) Del(key string) + func (m *ClientState) Get(key string) (string, bool) + func (m *ClientState) Put(key, val string) + type ClientStateRW struct + ClientValues map[string]string + func NewClientRW() *ClientStateRW + func (c *ClientStateRW) ReadState(*http.Request) (authboss.ClientState, error) + func (c *ClientStateRW) WriteState(w http.ResponseWriter, cstate authboss.ClientState, ...) error + type Emailer struct + Email authboss.Email + func (e *Emailer) Send(ctx context.Context, email authboss.Email) error + type ErrorHandler struct + Error error + func (e *ErrorHandler) Wrap(handler func(w http.ResponseWriter, r *http.Request) error) http.Handler + type FailStorer struct + func (FailStorer) Create(context.Context) error + func (FailStorer) Load(context.Context) error + func (FailStorer) Save(context.Context) error + type Logger struct + func (l Logger) Error(string) + func (l Logger) Info(string) + type Mailer struct + Last authboss.Email + SendErr string + func NewMailer() *Mailer + func (m *Mailer) Send(ctx context.Context, email authboss.Email) error + type Redirector struct + Options authboss.RedirectOptions + func (r *Redirector) Redirect(w http.ResponseWriter, req *http.Request, ro authboss.RedirectOptions) error + type Renderer struct + Context context.Context + Data authboss.HTMLData + Page string + Pages []string + func (r *Renderer) HasLoadedViews(pages ...string) error + func (r *Renderer) Load(pages ...string) error + func (r *Renderer) Render(ctx context.Context, page string, data authboss.HTMLData) ([]byte, string, error) + type Responder struct + Data authboss.HTMLData + Page string + Status int + func (r *Responder) Respond(w http.ResponseWriter, req *http.Request, code int, page string, ...) error + type Router struct + Deletes []string + Gets []string + Posts []string + func (Router) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (r *Router) Delete(path string, _ http.Handler) + func (r *Router) Get(path string, _ http.Handler) + func (r *Router) HasDeletes(deletes ...string) error + func (r *Router) HasGets(gets ...string) error + func (r *Router) HasPosts(posts ...string) error + func (r *Router) Post(path string, _ http.Handler) + type ServerStorer struct + RMTokens map[string][]string + Users map[string]*User + func NewServerStorer() *ServerStorer + func (s *ServerStorer) AddRememberToken(ctx context.Context, key, token string) error + func (s *ServerStorer) Create(ctx context.Context, user authboss.User) error + func (s *ServerStorer) DelRememberTokens(ctx context.Context, key string) error + func (s *ServerStorer) Load(ctx context.Context, key string) (authboss.User, error) + func (s *ServerStorer) LoadByConfirmSelector(ctx context.Context, selector string) (authboss.ConfirmableUser, error) + func (s *ServerStorer) LoadByRecoverSelector(ctx context.Context, selector string) (authboss.RecoverableUser, error) + func (s *ServerStorer) New(context.Context) authboss.User + func (s *ServerStorer) NewFromOAuth2(ctx context.Context, provider string, details map[string]string) (authboss.OAuth2User, error) + func (s *ServerStorer) Save(ctx context.Context, user authboss.User) error + func (s *ServerStorer) SaveOAuth2(ctx context.Context, user authboss.OAuth2User) error + func (s *ServerStorer) UseRememberToken(ctx context.Context, givenKey, token string) (err error) + type User struct + Arbitrary map[string]string + AttemptCount int + ConfirmSelector string + ConfirmVerifier string + Confirmed bool + Email string + LastAttempt time.Time + Locked time.Time + OAuth2Expiry time.Time + OAuth2Provider string + OAuth2Refresh string + OAuth2Token string + OAuth2UID string + OTPs string + Password string + RecoverSelector string + RecoverTokenExpiry time.Time + RecoverVerifier string + RecoveryCodes string + SMSPhoneNumber string + SMSPhoneNumberSeed string + TOTPLastCode string + TOTPSecretKey string + Username string + func (u *User) PutArbitrary(arb map[string]string) + func (u *User) PutAttemptCount(attemptCount int) + func (u *User) PutConfirmSelector(confirmSelector string) + func (u *User) PutConfirmVerifier(confirmVerifier string) + func (u *User) PutConfirmed(confirmed bool) + func (u *User) PutEmail(email string) + func (u *User) PutLastAttempt(attemptTime time.Time) + func (u *User) PutLocked(locked time.Time) + func (u *User) PutOAuth2AccessToken(token string) + func (u *User) PutOAuth2Expiry(expiry time.Time) + func (u *User) PutOAuth2Provider(provider string) + func (u *User) PutOAuth2RefreshToken(refresh string) + func (u *User) PutOAuth2UID(uid string) + func (u *User) PutOTPs(otps string) + func (u *User) PutPID(email string) + func (u *User) PutPassword(password string) + func (u *User) PutRecoverExpiry(recoverTokenExpiry time.Time) + func (u *User) PutRecoverSelector(recoverSelector string) + func (u *User) PutRecoverVerifier(recoverVerifier string) + func (u *User) PutRecoveryCodes(codes string) + func (u *User) PutSMSPhoneNumber(number string) + func (u *User) PutTOTPLastCode(key string) + func (u *User) PutTOTPSecretKey(key string) + func (u *User) PutUsername(username string) + func (u User) GetArbitrary() map[string]string + func (u User) GetAttemptCount() int + func (u User) GetConfirmSelector() string + func (u User) GetConfirmVerifier() string + func (u User) GetConfirmed() bool + func (u User) GetEmail() string + func (u User) GetLastAttempt() time.Time + func (u User) GetLocked() time.Time + func (u User) GetOAuth2AccessToken() string + func (u User) GetOAuth2Expiry() time.Time + func (u User) GetOAuth2Provider() string + func (u User) GetOAuth2RefreshToken() string + func (u User) GetOAuth2UID() string + func (u User) GetOTPs() string + func (u User) GetPID() string + func (u User) GetPassword() string + func (u User) GetRecoverExpiry() time.Time + func (u User) GetRecoverSelector() string + func (u User) GetRecoverVerifier() string + func (u User) GetRecoveryCodes() string + func (u User) GetSMSPhoneNumber() string + func (u User) GetSMSPhoneNumberSeed() string + func (u User) GetTOTPLastCode() string + func (u User) GetTOTPSecretKey() string + func (u User) GetUsername() string + func (u User) IsOAuth2User() bool + type Values struct + Code string + Errors []error + PID string + Password string + PhoneNumber string + Recovery string + Remember bool + Token string + func (v Values) GetCode() string + func (v Values) GetPID() string + func (v Values) GetPassword() string + func (v Values) GetPhoneNumber() string + func (v Values) GetRecoveryCode() string + func (v Values) GetShouldRemember() bool + func (v Values) GetToken() string + func (v Values) Validate() []error