Documentation ¶
Index ¶
- Variables
- type Auth
- type AuthService
- func (a *AuthService) CheckIdentityMiddleware(ctx *gin.Context)
- func (a *AuthService) Confirm(in *dto.ConfirmDTO) error
- func (a *AuthService) GetUserByName(username string) (*dto.UserDTO, error)
- func (a *AuthService) Login(in *dto.LoginDTO) (*string, error)
- func (a *AuthService) Logout(username string) error
- func (a *AuthService) SignUp(in *dto.SignUpDTO) error
- type CognitoJWTValidator
- type JWTValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserPasswordAuthFlow = "USER_PASSWORD_AUTH" TokenAuthFlow = "REFRESH_TOKEN_AUTH" UserCtxKey = "USER" )
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(cognito *cognitoidentityprovider.CognitoIdentityProvider, cfg *config.Env, jwt JWTValidator) *AuthService
func (*AuthService) CheckIdentityMiddleware ¶
func (a *AuthService) CheckIdentityMiddleware(ctx *gin.Context)
func (*AuthService) Confirm ¶
func (a *AuthService) Confirm(in *dto.ConfirmDTO) error
func (*AuthService) GetUserByName ¶
func (a *AuthService) GetUserByName(username string) (*dto.UserDTO, error)
func (*AuthService) Logout ¶
func (a *AuthService) Logout(username string) error
type CognitoJWTValidator ¶
type CognitoJWTValidator struct {
// contains filtered or unexported fields
}
type JWTValidator ¶
func NewJWTValidator ¶
func NewJWTValidator(cfg *config.Env) JWTValidator
Click to show internal directories.
Click to hide internal directories.