Documentation
¶
Overview ¶
Package jose holds JOSE "typ" header values and the predicate that compares them. It imports only the standard library.
Index ¶
Constants ¶
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 IsJOSEType ¶
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.