Documentation ¶
Index ¶
- Constants
- type Authenticator
- func (a *Authenticator) AuthenticateRequest(req *http.Request) (api.UserInfo, bool, error)
- func (a *Authenticator) AuthenticationSucceeded(user api.UserInfo, state string, w http.ResponseWriter, req *http.Request) (bool, error)
- func (a *Authenticator) InvalidateAuthentication(context api.UserInfo, w http.ResponseWriter, req *http.Request) error
- type Session
- type Store
Constants ¶
View Source
const UserNameKey = "user.name"
View Source
const UserUIDKey = "user.uid"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶ added in v0.2.1
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶ added in v0.2.1
func NewAuthenticator(store Store, name string) *Authenticator
func (*Authenticator) AuthenticateRequest ¶ added in v0.2.1
func (*Authenticator) AuthenticationSucceeded ¶ added in v0.2.1
func (a *Authenticator) AuthenticationSucceeded(user api.UserInfo, state string, w http.ResponseWriter, req *http.Request) (bool, error)
func (*Authenticator) InvalidateAuthentication ¶ added in v0.2.1
func (a *Authenticator) InvalidateAuthentication(context api.UserInfo, w http.ResponseWriter, req *http.Request) error
Click to show internal directories.
Click to hide internal directories.