Documentation
¶
Overview ¶
Package browserauth implements read-only browser identity and SP-initiated SAML. XML/signature validation belongs to crewjam/saml; opaque credentials live in PostgreSQL.
Index ¶
- Constants
- Variables
- func ClearCookie(w http.ResponseWriter)
- type Identity
- type Service
- func (s *Service) Authenticate(r *http.Request) (*Identity, error)
- func (s *Service) Callback(w http.ResponseWriter, r *http.Request) error
- func (s *Service) Identity(ctx context.Context, hash []byte) (*Identity, error)
- func (s *Service) Login(w http.ResponseWriter, r *http.Request) error
- func (s *Service) Logout(w http.ResponseWriter, r *http.Request) error
- func (s *Service) Metadata(w http.ResponseWriter, _ *http.Request) error
- func (s *Service) Mode() string
- func (s *Service) State(w http.ResponseWriter, r *http.Request) (State, error)
- type State
- type User
Constants ¶
View Source
const CallbackLimit = 1 << 20
View Source
const CookieName = "__Host-orpheus_session"
Variables ¶
View Source
var ErrNoSession = errors.New("browser session absent")
Functions ¶
func ClearCookie ¶
func ClearCookie(w http.ResponseWriter)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.