Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireTokenAuthentication ¶
func RequireTokenAuthentication(rw http.ResponseWriter, req *http.Request, next http.HandlerFunc)
Types ¶
type JWTAuthenticationBackend ¶
type JWTAuthenticationBackend struct { PublicKey *rsa.PublicKey // contains filtered or unexported fields }
func InitJWTAuthenticationBackend ¶
func InitJWTAuthenticationBackend() *JWTAuthenticationBackend
func (*JWTAuthenticationBackend) GenerateToken ¶
func (backend *JWTAuthenticationBackend) GenerateToken(user *models.User) (string, error)
Click to show internal directories.
Click to hide internal directories.