jose

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 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.

Documentation

Overview

Package jose holds JOSE "typ" header values and the predicate that compares them. It imports only the standard library.

Index

Constants

View Source
const (
	// JWTTypeAccessToken is the typ of an RFC 9068 JWT access token.
	JWTTypeAccessToken = "at+jwt"
	// JWTTypeIDJAG is the typ of an Identity Assertion JWT Authorization Grant,
	// which is presented at a token endpoint and is never a bearer token.
	JWTTypeIDJAG = "oauth-id-jag+jwt"
	// JWTTypeLogout is the typ of an OpenID Connect Back-Channel Logout token.
	JWTTypeLogout = "logout+jwt"
	// JWTTypeSecEvent is the typ of a Security Event Token (RFC 8417).
	JWTTypeSecEvent = "secevent+jwt"
	// JWTTypeDPoP is the typ of a DPoP proof JWT (RFC 9449).
	JWTTypeDPoP = "dpop+jwt"
	// JWTTypeTokenIntrospection is the typ of a JWT introspection response
	// (RFC 9701).
	JWTTypeTokenIntrospection = "token-introspection+jwt"
)

JOSE "typ" header values (RFC 7515 Section 4.1.9), in short form without the optional "application/" prefix.

Variables

This section is empty.

Functions

func IsIDJAG

func IsIDJAG(headerTyp string) bool

IsIDJAG reports whether a "typ" header value names an ID-JAG.

func IsJOSEType

func IsJOSEType(headerTyp, mediaType string) bool

IsJOSEType reports whether a "typ" header value names the given media type. The comparison is case-insensitive, the "application/" prefix is optional on either side, and whitespace is not trimmed. An empty value never matches.

Types

This section is empty.

Jump to

Keyboard shortcuts

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