Documentation ¶
Index ¶
- type ServiceInterface
- func (_m *ServiceInterface) AuthClient(clientID string, secret string) (*oauth.Client, error)
- func (_m *ServiceInterface) AuthUser(username string, thePassword string) (*oauth.User, error)
- func (_m *ServiceInterface) Authenticate(token string) (*oauth.AccessToken, error)
- func (_m *ServiceInterface) ClientExists(clientID string) bool
- func (_m *ServiceInterface) CreateClient(clientID string, secret string, redirectURI string) (*oauth.Client, error)
- func (_m *ServiceInterface) CreateClientTx(tx *gorm.DB, clientID string, secret string, redirectURI string) (*oauth.Client, error)
- func (_m *ServiceInterface) CreateUser(username string, password string) (*oauth.User, error)
- func (_m *ServiceInterface) CreateUserTx(tx *gorm.DB, username string, password string) (*oauth.User, error)
- func (_m *ServiceInterface) FindClientByClientID(clientID string) (*oauth.Client, error)
- func (_m *ServiceInterface) FindUserByUsername(username string) (*oauth.User, error)
- func (_m *ServiceInterface) GetOrCreateRefreshToken(client *oauth.Client, user *oauth.User, expiresIn int, scope string) (*oauth.RefreshToken, error)
- func (_m *ServiceInterface) GetScope(requestedScope string) (string, error)
- func (_m *ServiceInterface) GetValidRefreshToken(token string, client *oauth.Client) (*oauth.RefreshToken, error)
- func (_m *ServiceInterface) GrantAccessToken(client *oauth.Client, user *oauth.User, expiresIn int, scope string) (*oauth.AccessToken, error)
- func (_m *ServiceInterface) GrantAuthorizationCode(client *oauth.Client, user *oauth.User, expiresIn int, redirectURI string, ...) (*oauth.AuthorizationCode, error)
- func (_m *ServiceInterface) IntrospectHandler(w http.ResponseWriter, r *http.Request)
- func (_m *ServiceInterface) Login(client *oauth.Client, user *oauth.User, scope string) (*oauth.AccessToken, *oauth.RefreshToken, error)
- func (_m *ServiceInterface) SetPassword(user *oauth.User, password string) error
- func (_m *ServiceInterface) SetPasswordTx(tx *gorm.DB, user *oauth.User, password string) error
- func (_m *ServiceInterface) TokensHandler(w http.ResponseWriter, r *http.Request)
- func (_m *ServiceInterface) UpdateUsername(user *oauth.User, username string) error
- func (_m *ServiceInterface) UpdateUsernameTx(db *gorm.DB, user *oauth.User, username string) error
- func (_m *ServiceInterface) UserExists(username string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceInterface ¶
func (*ServiceInterface) AuthClient ¶
func (*ServiceInterface) Authenticate ¶
func (_m *ServiceInterface) Authenticate(token string) (*oauth.AccessToken, error)
func (*ServiceInterface) ClientExists ¶
func (_m *ServiceInterface) ClientExists(clientID string) bool
func (*ServiceInterface) CreateClient ¶
func (*ServiceInterface) CreateClientTx ¶
func (*ServiceInterface) CreateUser ¶
func (*ServiceInterface) CreateUserTx ¶
func (*ServiceInterface) FindClientByClientID ¶
func (_m *ServiceInterface) FindClientByClientID(clientID string) (*oauth.Client, error)
func (*ServiceInterface) FindUserByUsername ¶
func (_m *ServiceInterface) FindUserByUsername(username string) (*oauth.User, error)
func (*ServiceInterface) GetOrCreateRefreshToken ¶
func (_m *ServiceInterface) GetOrCreateRefreshToken(client *oauth.Client, user *oauth.User, expiresIn int, scope string) (*oauth.RefreshToken, error)
func (*ServiceInterface) GetScope ¶
func (_m *ServiceInterface) GetScope(requestedScope string) (string, error)
func (*ServiceInterface) GetValidRefreshToken ¶
func (_m *ServiceInterface) GetValidRefreshToken(token string, client *oauth.Client) (*oauth.RefreshToken, error)
func (*ServiceInterface) GrantAccessToken ¶
func (_m *ServiceInterface) GrantAccessToken(client *oauth.Client, user *oauth.User, expiresIn int, scope string) (*oauth.AccessToken, error)
func (*ServiceInterface) GrantAuthorizationCode ¶
func (*ServiceInterface) IntrospectHandler ¶
func (_m *ServiceInterface) IntrospectHandler(w http.ResponseWriter, r *http.Request)
func (*ServiceInterface) Login ¶
func (_m *ServiceInterface) Login(client *oauth.Client, user *oauth.User, scope string) (*oauth.AccessToken, *oauth.RefreshToken, error)
func (*ServiceInterface) SetPassword ¶
func (_m *ServiceInterface) SetPassword(user *oauth.User, password string) error
func (*ServiceInterface) SetPasswordTx ¶
func (*ServiceInterface) TokensHandler ¶
func (_m *ServiceInterface) TokensHandler(w http.ResponseWriter, r *http.Request)
func (*ServiceInterface) UpdateUsername ¶
func (_m *ServiceInterface) UpdateUsername(user *oauth.User, username string) error
func (*ServiceInterface) UpdateUsernameTx ¶
func (*ServiceInterface) UserExists ¶
func (_m *ServiceInterface) UserExists(username string) bool
Click to show internal directories.
Click to hide internal directories.