jwtauth

package module
v0.0.0-...-7369b5f Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyKeySet = errors.New("key set is empty")

Functions

func KeySetFromURI

func KeySetFromURI(jwksURI string) (*jose.JSONWebKeySet, error)

func RequireToken

func RequireToken(options RequireTokenOptions) func(http.Handler) http.Handler

Types

type RequireTokenOptions

type RequireTokenOptions struct {
	KeySet    *jose.JSONWebKeySet
	ErrorFunc func(http.ResponseWriter, string, int)
}

Directories

Path Synopsis
examples
simple command

Jump to

Keyboard shortcuts

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