Documentation ¶
Index ¶
- Constants
- func Authenticate(maxCtxDuration time.Duration, svc *service.Service) (handler gin.HandlerFunc)
- func AuthenticateRefresh(maxCtxDuration time.Duration, svc *service.Service) (handler gin.HandlerFunc)
- func GetAuthenticatedClaim(c *gin.Context) (claims *jwt.CustomClaims, err error)
- func GetAuthenticatedUser(c *gin.Context) (user *models.UserModel, err error)
- func GetRefreshClaims(c *gin.Context) (claims *jwt.CustomClaims, err error)
- func GetRefreshedUser(c *gin.Context) (user *models.UserModel, err error)
- func VerifyPassword(maxCtxDuration time.Duration, svc *service.Service) (handler gin.HandlerFunc)
Constants ¶
View Source
const ( AuthenticatedClaims = "AUTH_CLAIMS" AuthenticatedUser = "AUTH_USER" )
View Source
const ( RefreshClaims = "REFRESH_CLAIMS" RefreshUser = "REFRESH_USER" )
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Check the authentication status of given user.
func AuthenticateRefresh ¶
func GetAuthenticatedClaim ¶
func GetAuthenticatedClaim(c *gin.Context) (claims *jwt.CustomClaims, err error)
func GetAuthenticatedUser ¶
func GetRefreshClaims ¶
func GetRefreshClaims(c *gin.Context) (claims *jwt.CustomClaims, err error)
func VerifyPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.