middleware

package
v0.0.0-...-c950848 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UidKey key = iota
)

UidKey is the context key for the user id.

Variables

This section is empty.

Functions

func IsAuthenticated

func IsAuthenticated(next http.Handler) http.Handler

IsAuthenticated ...

Types

type JSONWebKeys

type JSONWebKeys struct {
	Kty string   `json:"kty"`
	Kid string   `json:"kid"`
	Use string   `json:"use"`
	N   string   `json:"n"`
	E   string   `json:"e"`
	X5c []string `json:"x5c"`
}

JSONWebKeys ...

type Jwks

type Jwks struct {
	Keys []JSONWebKeys `json:"keys"`
}

Jwks ...

type Response

type Response struct {
	Message string `json:"message"`
}

Response ...

Jump to

Keyboard shortcuts

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