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 ErrExpired = errors.New("Token is expired") + type ClientAuthorizationGrantChecker struct + func NewClientAuthorizationGrantChecker(registry clientauthorization.Registry) *ClientAuthorizationGrantChecker + func (c *ClientAuthorizationGrantChecker) HasAuthorizedClient(user api.UserInfo, grant *api.Grant) (approved bool, err error) + type TokenAuthenticator struct + func NewTokenAuthenticator(registry accesstoken.Registry) *TokenAuthenticator + func (a *TokenAuthenticator) AuthenticateToken(value string) (api.UserInfo, bool, error) + type UserConversion struct + func NewUserConversion() *UserConversion + func (s *UserConversion) ConvertFromAccessToken(token *oapi.AccessToken) (interface{}, error) + func (s *UserConversion) ConvertFromAuthorizeToken(token *oapi.AuthorizeToken) (interface{}, error) + func (s *UserConversion) ConvertToAccessToken(user interface{}, token *oapi.AccessToken) error + func (s *UserConversion) ConvertToAuthorizeToken(user interface{}, token *oapi.AuthorizeToken) error