Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - type ClientAuthorizationGrantChecker
 - type TokenAuthenticator
 - type UserConversion
 - func (s *UserConversion) ConvertFromAccessToken(token *oapi.OAuthAccessToken) (interface{}, error)
 - func (s *UserConversion) ConvertFromAuthorizeToken(token *oapi.OAuthAuthorizeToken) (interface{}, error)
 - func (s *UserConversion) ConvertToAccessToken(user interface{}, token *oapi.OAuthAccessToken) error
 - func (s *UserConversion) ConvertToAuthorizeToken(user interface{}, token *oapi.OAuthAuthorizeToken) error
 
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ClientAuthorizationGrantChecker ¶
type ClientAuthorizationGrantChecker struct {
	// contains filtered or unexported fields
}
    func NewClientAuthorizationGrantChecker ¶
func NewClientAuthorizationGrantChecker(registry oauthclientauthorization.Registry) *ClientAuthorizationGrantChecker
type TokenAuthenticator ¶
type TokenAuthenticator struct {
	// contains filtered or unexported fields
}
    func NewTokenAuthenticator ¶
func NewTokenAuthenticator(tokens oauthaccesstoken.Registry, users user.Registry, groupMapper identitymapper.UserToGroupMapper) *TokenAuthenticator
type UserConversion ¶
type UserConversion struct{}
    func NewUserConversion ¶
func NewUserConversion() *UserConversion
NewUserConversion creates an object that can convert the user.Info object to and from an oauth access/authorize token object.
func (*UserConversion) ConvertFromAccessToken ¶
func (s *UserConversion) ConvertFromAccessToken(token *oapi.OAuthAccessToken) (interface{}, error)
func (*UserConversion) ConvertFromAuthorizeToken ¶
func (s *UserConversion) ConvertFromAuthorizeToken(token *oapi.OAuthAuthorizeToken) (interface{}, error)
func (*UserConversion) ConvertToAccessToken ¶
func (s *UserConversion) ConvertToAccessToken(user interface{}, token *oapi.OAuthAccessToken) error
func (*UserConversion) ConvertToAuthorizeToken ¶
func (s *UserConversion) ConvertToAuthorizeToken(user interface{}, token *oapi.OAuthAuthorizeToken) error
      
      Source Files
      ¶
    
- grantchecker.go
 - tokenauthenticator.go
 - userconversion.go
 
 Click to show internal directories. 
   Click to hide internal directories.