Documentation ¶
Index ¶
- Variables
- type AuthCore
- type AuthCredentials
- type AuthDatasource
- type AuthEncoder
- type AuthNotifier
- type AuthRecoveryPasswordRequest
- type AuthRecoveryPasswordResponse
- type AuthResetPasswordRequest
- type AuthResetPasswordResponse
- type AuthStore
- type AuthTokenErrorResponse
- type AuthTokenResponse
- type PID
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadRequest = errors.New("bad request")
View Source
var ErrInternalServerError = errors.New("internal server error")
View Source
var ErrInvalidPID = errors.New("invalid PID")
View Source
var ErrInvalidToken = errors.New("invalid token")
View Source
var ErrMissingUsernameOrPassword = errors.New("missing username or password")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type AuthCore ¶
type AuthCore struct { DS AuthDatasource TokenEncoder AuthEncoder Store AuthStore Notifier AuthNotifier }
func (*AuthCore) AssertConfigured ¶
func (ac *AuthCore) AssertConfigured()
type AuthCredentials ¶
type AuthDatasource ¶
type AuthEncoder ¶
type AuthNotifier ¶
type AuthRecoveryPasswordRequest ¶
type AuthRecoveryPasswordRequest struct {
Email string `json:"email"`
}
type AuthStore ¶
type AuthStore interface { StoreAuthToken(token *Token, pid PID) error GetAuthTokenPID(token string) (PID, error) DeleteAuthToken(token string) error StoreResetPasswordToken(token *Token, pid PID) error GetResetPasswordTokenPID(token string) (PID, error) DeleteResetPasswordToken(token string) error }
type AuthTokenErrorResponse ¶
type AuthTokenErrorResponse struct {
Error string `json:"error"`
}
type AuthTokenResponse ¶
type AuthTokenResponse struct {
Token *Token `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.