spec

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package spec holds the on-the-wire constants of the IETF Token Status List (draft-ietf-oauth-status-list-12) that this verifier and any interoperating issuer must agree on. It is the single source of truth for the values that have drifted across implementations: the CWT claim keys, the COSE typ label, and the media types. Framework-free (ADR-0004): no imports.

Index

Constants

View Source
const (
	ClaimSub        int64 = 2
	ClaimExp        int64 = 4
	ClaimIat        int64 = 6
	ClaimStatusList int64 = 65533
	ClaimTTL        int64 = 65534
)

CWT/JWT claim keys. Sub/Exp/Iat are the RFC 8392 standard CWT claim keys; StatusList/TTL are the draft's private CWT claim keys (§5.2 / IANA CWT Claims).

View Source
const (
	MediaStatusListJWT = "statuslist+jwt"
	MediaStatusListCWT = "application/statuslist+cwt"
)

Media types. MediaStatusListJWT is the JOSE `typ` value (a subtype); MediaStatusListCWT is the COSE `typ` (label 16) value (the full media type).

View Source
const (
	StatusValid     byte = 0x00
	StatusInvalid   byte = 0x01
	StatusSuspended byte = 0x02
)

Registered status values (draft §7).

View Source
const Draft = "draft-ietf-oauth-status-list-12"

Draft is the pinned Token Status List draft this module targets.

View Source
const HeaderTyp int64 = 16

HeaderTyp is the COSE protected-header label carrying the token type (RFC 9596).

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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