Versions in this module Expand all Collapse all v0 v0.2.2 Feb 4, 2015 v0.2.1 Jan 28, 2015 Changes in this version + var Allow = &fixedAuthenticator + var Deny = &fixedAuthenticator + type AccessAuthenticator struct + func NewAccessAuthenticator(password authenticator.Password, assertion authenticator.Assertion, ...) *AccessAuthenticator + func NewDenyAccessAuthenticator() *AccessAuthenticator + func (h *AccessAuthenticator) HandleAccess(ar *osin.AccessRequest, w http.ResponseWriter) error + type AuthenticationChallenger interface + AuthenticationChallenge func(req *http.Request) (header http.Header, err error) + type AuthenticationErrorHandler interface + AuthenticationError func(error, http.ResponseWriter, *http.Request) (handled bool, err error) + type AuthenticationHandler interface + AuthenticationNeeded func(client api.Client, w http.ResponseWriter, req *http.Request) (handled bool, err error) + func NewUnionAuthenticationHandler(passedChallengers map[string]AuthenticationChallenger, ...) AuthenticationHandler + type AuthenticationRedirector interface + AuthenticationRedirect func(w http.ResponseWriter, req *http.Request) (err error) + type AuthenticationSuccessHandler interface + AuthenticationSucceeded func(user api.UserInfo, state string, w http.ResponseWriter, req *http.Request) (bool, error) + type AuthenticationSuccessHandlers []AuthenticationSuccessHandler + func (all AuthenticationSuccessHandlers) AuthenticationSucceeded(user api.UserInfo, state string, w http.ResponseWriter, req *http.Request) (bool, error) + type AuthorizeAuthenticator struct + func NewAuthorizeAuthenticator(request authenticator.Request, handler AuthenticationHandler, ...) *AuthorizeAuthenticator + func (h *AuthorizeAuthenticator) HandleAuthorize(ar *osin.AuthorizeRequest, w http.ResponseWriter) (bool, error) + type EmptyAuth struct + func (EmptyAuth) AuthenticationNeeded(client authapi.Client, w http.ResponseWriter, req *http.Request) (bool, error) + type EmptyError struct + func (EmptyError) AuthenticationError(err error, w http.ResponseWriter, req *http.Request) (bool, error) + func (EmptyError) GrantError(err error, w http.ResponseWriter, req *http.Request) (bool, error) + type EmptySuccess struct + func (EmptySuccess) AuthenticationSucceeded(user authapi.UserInfo, state string, w http.ResponseWriter, req *http.Request) (bool, error) + type GrantCheck struct + func NewGrantCheck(check GrantChecker, handler GrantHandler, errorHandler GrantErrorHandler) *GrantCheck + func (h *GrantCheck) HandleAuthorize(ar *osin.AuthorizeRequest, w http.ResponseWriter) (bool, error) + type GrantChecker interface + HasAuthorizedClient func(user api.UserInfo, grant *api.Grant) (bool, error) + type GrantErrorHandler interface + GrantError func(error, http.ResponseWriter, *http.Request) (handled bool, err error) + type GrantHandler interface + GrantNeeded func(user api.UserInfo, grant *api.Grant, w http.ResponseWriter, req *http.Request) (handled bool, err error) + func NewAutoGrant(authregistry clientauthorization.Registry) GrantHandler + func NewEmptyGrant() GrantHandler + func NewRedirectGrant(url string) GrantHandler