Documentation
¶
Index ¶
- func Authenticated(ctx context.Context) bool
- func ClearSession(store sessions.Store, r *http.Request, w http.ResponseWriter) error
- func SetIdentityCtx(parent context.Context, session *AuthSession) context.Context
- func SetSession(store sessions.Store, r *http.Request, w http.ResponseWriter, s *AuthSession) error
- type AuthSession
- type Claims
- type ClaimsMiddleware
- type Identity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticated ¶
func ClearSession ¶
func SetIdentityCtx ¶
func SetIdentityCtx(parent context.Context, session *AuthSession) context.Context
func SetSession ¶
func SetSession(store sessions.Store, r *http.Request, w http.ResponseWriter, s *AuthSession) error
Types ¶
type AuthSession ¶
func GetSession ¶
type ClaimsMiddleware ¶
type Identity ¶
type Identity struct {
// Provider is the name of the authentication provider
// that authenticated (created) this Identity struct.
Provider string
// Subject is the canonical identifer for this Identity.
Subject string
// Name is the name of the person this Identity refers to.
// It may be empty.
Name string
// Email is the email address of the person this Identity refers to.
// It may be empty.
Email string
// Claims are any additional claims that middleware have
// added to this Identity.
Claims Claims
}
Click to show internal directories.
Click to hide internal directories.