Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthClaims ¶
type Authenticator ¶
func NewAuthenticator ¶
func NewAuthenticator(storage *model.Storage) *Authenticator
func (*Authenticator) JWTAuth ¶
func (a *Authenticator) JWTAuth() gin.HandlerFunc
func (*Authenticator) ManualAuth ¶
func (a *Authenticator) ManualAuth(accessToken string) (bool, error)
func (*Authenticator) ValidateAccessToken ¶
func (a *Authenticator) ValidateAccessToken(accessToken string) (bool, error)
func (*Authenticator) ValidateUser ¶
Click to show internal directories.
Click to hide internal directories.