Versions in this module Expand all Collapse all v0 v0.27.0 Nov 15, 2026 v0.26.0 Nov 7, 2026 Changes in this version + const AcmeOrgID + const ClientID + const GrantDeviceCode + const GrantTokenExchange + const HomeOrgID + const OtherOrgID + const ReuseGrace + const TokenTypeAccess + const TokenTypeCLISession + type Grant struct + Access string + ID string + Refresh string + Revoked bool + Scopes []string + type Server struct + AccessTTL int + Authorizations int + AuthorizeQuery url.Values + Clock func() time.Time + CodeExchanges int + Delay time.Duration + Deny bool + DeviceAnswers []string + DeviceCodeForm url.Values + DevicePolls int + Exchanges int + GraceHits int + IssOff bool + LegacyRefresh string + LegacyRefreshes int + NoDefaultOrg bool + NoDevice bool + NoExchange bool + OAuthOff bool + ProductTTL int + RefreshTimes []time.Time + Refreshes int + Reuses int + Revocations []url.Values + RevokeStatus int + SignOuts []url.Values + TokenEndpoint string + UpgradeRefusals int + Upgrades int + WrongIss bool + func New() *Server + func (s *Server) AddLegacySession(refresh string) + func (s *Server) Counts() (refreshes, exchanges, upgrades int) + func (s *Server) CurrentRefresh(g *Grant) string + func (s *Server) ExpireAccess(g *Grant) + func (s *Server) Grant(refresh string) *Grant + func (s *Server) KnowsScope(scope string) bool + func (s *Server) Lock() + func (s *Server) MaxConcurrentExchanges() int + func (s *Server) NewGrant(scopes ...string) *Grant + func (s *Server) ProductToken(tok string) (audience, org string, scopes []string, ok bool) + func (s *Server) RevokeGrant(g *Grant) + func (s *Server) Revoked(g *Grant) bool + func (s *Server) Rotate(g *Grant) string + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) Stats() Stats + func (s *Server) Unlock() + type Stats struct + Authorizations int + AuthorizeQuery url.Values + CodeExchanges int + DeviceCodeForm url.Values + DevicePolls int + Exchanges int + GraceHits int + LegacyRefreshes int + RefreshTimes []time.Time + Refreshes int + Reuses int + Revocations []url.Values + SignOuts []url.Values + UpgradeRefusals int + Upgrades int