Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrApiKeyNotFound = errors.New("api key was not found")
Functions ¶
This section is empty.
Types ¶
type ApiKeyContextAdapter ¶
type AuthorizationFlow ¶
type AuthorizationFlow interface { Authorize(request *models.OAuthLoginRequest, tenant string) (*models.OAuthLoginResponse, *models.OAuthErrorResponse) RefreshToken(request *models.OAuthLoginRequest, tenant string) (*models.OAuthLoginResponse, *models.OAuthErrorResponse) ValidateEmailToken(request *models.OAuthLoginRequest, tenant string) (*models.OAuthLoginResponse, *models.OAuthErrorResponse) }
type UserContextAdapter ¶
type UserContextAdapter interface { GetUserById(id string) *models.User GetUserByEmail(email string) *models.User GetUserByUsername(username string) *models.User UpsertUser(user models.User) error RemoveUser(id string) bool GetUserRefreshToken(id string) *string UpdateUserRefreshToken(id string, token string) bool GetUserEmailVerifyToken(id string) *string UpdateUserEmailVerifyToken(id string, token string) bool }
Click to show internal directories.
Click to hide internal directories.