Versions in this module Expand all Collapse all v0 v0.5.3 Jun 12, 2026 Changes in this version + const StateCookieName + const StateCookiePath + const StateCookieTTL + const TypeOIDC + const TypeSAML + var ErrStateInvalid = errors.New("auth: state cookie invalid") + var ErrStateMissing = errors.New("auth: state cookie missing") + func ClearStateCookie(w http.ResponseWriter) + func IssueStateCookie(w http.ResponseWriter, secret []byte, state State) error + func NewNonce() (string, error) + type Provider interface + HandleCallback func(ctx context.Context, r *http.Request, state State) (ResolvedIdentity, error) + LoginURL func(ctx context.Context, state State) (string, error) + Type func() string + type ResolvedIdentity struct + Email string + Groups []string + IDToken string + Name string + PreferredUsername string + Raw map[string]any + Subject string + type State struct + EnvUUID string + Nonce string + OAuthState string + SAMLRequestID string + Verifier string + func ParseStateCookie(r *http.Request, secret []byte) (State, error) + func (s State) IsZero() bool