jam

package module
v0.0.0-...-cf139f1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

JAM

Jwt Auth Middleware for Go

This project proposes a JWT middleware for Go applications, with the core functionality to verify requests with JWT objects. The underlying JOSE implementation comes from the jwx library. It is just a simpler, less flexible version of the jwauth middleware, brought to us by the chi team.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JamOption

type JamOption interface {
	Option
	// contains filtered or unexported methods
}

func WithAlgorithm

func WithAlgorithm(a SignatureAlgorithm) JamOption

func WithExtractors

func WithExtractors(extractors ...Extractor) JamOption

func WithKeySet

func WithKeySet(ks jwk.Set) JamOption

func WithPrivateKey

func WithPrivateKey(k jwk.Key) JamOption

func WithPublicKey

func WithPublicKey(k jwk.Key) JamOption

type Option

type Option = option.Interface

Jump to

Keyboard shortcuts

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