jwsutil

package
v0.0.0-...-0d7515a Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = errors.New("signing key not found in the key set")
View Source
var ErrNoKID = errors.New("no kid is found in the header")

Functions

func VerifyWithSet

func VerifyWithSet(keySet jwk.Set, compact []byte) (hdr jws.Headers, payload jwt.Token, err error)

VerifyWithSet verify compact against keySet. The reason to have this function is because The keys in https://login.microsoftonline.com/common/discovery/v2.0/keys does not specify the alg. Therefore we need to look take both alg in the header and in the key into account.

Types

This section is empty.

Jump to

Keyboard shortcuts

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