Documentation ¶
Overview ¶
Package controller contains all the controllers of the application
Index ¶
- func Activate2FA(c *gin.Context)
- func CreateUserAuth(c *gin.Context)
- func CreateVerificationEmail(c *gin.Context)
- func Deactivate2FA(c *gin.Context)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func PasswordForgot(c *gin.Context)
- func PasswordRecover(c *gin.Context)
- func PasswordUpdate(c *gin.Context)
- func Refresh(c *gin.Context)
- func Setup2FA(c *gin.Context)
- func Validate2FA(c *gin.Context)
- func VerifyEmail(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Activate2FA ¶ added in v1.6.1
Activate2FA - activate 2FA upon validation possible for accounts without 2FA-ON dependency: relational database, JWT, 2FA service
func CreateUserAuth ¶
CreateUserAuth - POST /register dependency: relational database
func CreateVerificationEmail ¶ added in v1.6.1
CreateVerificationEmail issues new verification code upon request dependency: email service, email verification service, Redis
func Deactivate2FA ¶ added in v1.6.1
Deactivate2FA - disable 2FA for user account dependency: relational database, JWT, 2FA service
func Login ¶
Login - issue new JWTs after user:pass verification dependency: relational database, JWT
func Logout ¶ added in v1.6.9
Logout - if 'AUTH_COOKIE_ACTIVATE=yes', ddelete tokens from client browser if Redis is enabled, save invalid tokens in Redis up until the expiry time dependency: JWT
func PasswordForgot ¶ added in v1.6.1
PasswordForgot sends secret code for resetting a forgotten password dependency: relational database, Redis, email service
func PasswordRecover ¶ added in v1.6.1
PasswordRecover resets a forgotten password dependency: relational database, Redis
func PasswordUpdate ¶ added in v1.6.1
PasswordUpdate - change password in logged-in state dependency: relational database, JWT
func Setup2FA ¶ added in v1.6.1
Setup2FA - get secret to activate 2FA possible for accounts without 2FA-ON dependency: relational database, JWT, 2FA service
func Validate2FA ¶ added in v1.6.1
Validate2FA - issue new JWTs upon 2FA validation required for accounts with 2FA-ON dependency: relational database, JWT, 2FA service
func VerifyEmail ¶ added in v1.6.1
VerifyEmail - verify email address dependency: email verification service, Redis
Types ¶
This section is empty.