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