Versions in this module Expand all Collapse all v1 v1.4.1 Jul 26, 2026 v1.1.0 Jul 21, 2026 Changes in this version + const SessionCookieName + const SessionMaxAge + const StateCookieName + func EncodeOAuthState(s *OAuthState) string + type OAuthState struct + CLICallback string + CLIState string + Nonce string + ReturnTo string + type OIDCAuth struct + func NewOIDCAuth(ctx context.Context, cfg config.OIDCConfig, store *identity.Store, ...) (*OIDCAuth, error) + func (oa *OIDCAuth) HandleCallback(w http.ResponseWriter, r *http.Request) + func (oa *OIDCAuth) HandleLogin(w http.ResponseWriter, r *http.Request) + type OIDCOption func(*OIDCAuth) + func WithOIDCDiscoveryAttemptTimeout(timeout time.Duration) OIDCOption + func WithOIDCDiscoveryBackoff(initial, maxBackoff time.Duration) OIDCOption + func WithOIDCDiscoveryDone(done chan<- struct{}) OIDCOption + type UserAuth struct + func NewUserAuth(cfg *config.OAuthConfig, store *identity.Store, production bool) *UserAuth + func NewUserAuthWithOAuthConfig(cfg *config.OAuthConfig, oauthCfg *oauth2.Config, store *identity.Store, ...) *UserAuth + func (ua *UserAuth) AuthenticateRequest(r *http.Request) *identity.User + func (ua *UserAuth) HandleAgentActivity(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleCallback(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleCreateAPIKey(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleDashboardAgents(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleDashboardStats(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleDeleteAPIKey(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleDeleteAgent(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleListAPIKeys(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleLogin(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleLogout(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleMe(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleUpdateAgent(w http.ResponseWriter, r *http.Request) + func (ua *UserAuth) HandleUpdateMe(w http.ResponseWriter, r *http.Request)