Documentation
¶
Index ¶
- Variables
- type Identity
- type ProviderMetadata
- type PublicStatus
- type Service
- func (s *Service) AuthenticateRequest(r *http.Request) (*Identity, bool)
- func (s *Service) Enabled() bool
- func (s *Service) HandleCallback(w http.ResponseWriter, r *http.Request) error
- func (s *Service) HandleLogin(w http.ResponseWriter, r *http.Request) error
- func (s *Service) HandleLogout(w http.ResponseWriter, r *http.Request)
- func (s *Service) HasExternalAuth() bool
- func (s *Service) Status(r *http.Request) PublicStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExternalAuthDisabled = errors.New("external auth is not configured") ErrMissingSessionSecret = errors.New("session secret is required") ErrInvalidSignature = errors.New("invalid session signature") ErrInvalidAuthState = errors.New("invalid auth state") ErrExpiredAuthState = errors.New("expired auth state") ErrExpiredSession = errors.New("expired session") ErrProviderAccessRevoked = errors.New("provider access revoked") )
Functions ¶
This section is empty.
Types ¶
type ProviderMetadata ¶
type PublicStatus ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AuthenticateRequest ¶
func (*Service) HandleCallback ¶
func (*Service) HandleLogin ¶
func (*Service) HandleLogout ¶
func (s *Service) HandleLogout(w http.ResponseWriter, r *http.Request)
func (*Service) HasExternalAuth ¶
Click to show internal directories.
Click to hide internal directories.