authentication

package
v0.0.0-...-f1b76ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL