Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticated ¶
Authenticated returns true if the user is successfully authenticated, in the call trace following SSOWrapper.Wrap.
Types ¶
type SSOWrapper ¶
type SSOWrapper struct { EnableCORS bool SameSite http.SameSite // contains filtered or unexported fields }
SSOWrapper protects http handlers with single-sign-on authentication.
func NewSSOWrapper ¶
func NewSSOWrapper(serverURL string, pkey []byte, domain string, sessionAuthKey, sessionEncKey []byte, ttl time.Duration) (*SSOWrapper, error)
NewSSOWrapper returns a new SSOWrapper that will authenticate users on the specified login service.
Click to show internal directories.
Click to hide internal directories.