# Functions
CodeAndMessageFrom returns http error code by error type.
Init endpoints for auth service.
MakeAuthorizeEndpoint returns an endpoint via the passed service.
MakeHTTPHandler returns a handler that makes a set of endpoints available on predefined paths.
MatchScopes verifies if the scope is allowed.
MatchScopes verifies if the scope is allowed.
MatchScopesStrict verifies if the all scopes is allowed.
NewClient creates a new client instance.
NewError creates a new error.
NewHandler creates a new oauth2 handler instance.
NewHandlerLogger returns a new handlerLogger.
NewOauth2Server initializes the OAuth2 server.
NewStore creates a new store instance.
NewToken creates a new token instance from a repository token.
WithClientScope sets the default scope for client_credentials grant type.
WithCodeScope sets the default scope for authorization_code grant type.
WithPasswordScope sets the default scope for password grant type.
# Constants
logged in user id key in session.
# Variables
Predefined errors.
Predefined errors.
Predefined errors.
Predefined errors.
Error codes map.
Error messages.
Predefined errors.
# Structs
No description provided by the author
Client represents an OAuth client implements the oauth2.ClientInfo interface.
No description provided by the author
No description provided by the author
No description provided by the author
Token represents an OAuth token implements the oauth2.TokenInfo interface.
# Interfaces
No description provided by the author