auth

package
v0.0.0-...-9f5b622 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(headers http.Header) bool

Authenticate verifies the caller comes trusted authority using jwt

Types

type Claims

type Claims struct {
	Author string `json:"author"`
	jwt.StandardClaims
}

Claims the struct holding the expected fields encoded in incoming jwt tokens

Jump to

Keyboard shortcuts

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