auth

package
v0.0.0-...-c381765 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTAuthMiddleware = jwtmiddleware.New(jwtmiddleware.Options{
	ValidationKeyGetter: func(token *jwt.Token) (interface{}, error) {
		secret := []byte(os.Getenv(config.Auth0ClientSecret))
		if len(secret) == 0 {
			return nil, errors.New(missingSecretKey)
		}
		return secret, nil
	},
})

JWTAuthMiddleware is the route middleware for jwt request auth

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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