Documentation
¶
Overview ¶
Package jws verifies a compact JWS (RFC 7515) carrying a signed JWT (RFC 7519) under the algorithms of package jwk, and returns its payload. It knows nothing of OpenID Connect.
Index ¶
Constants ¶
View Source
const MaxSize = 64 << 10
MaxSize is the longest token Parse reads; a longer one is refused before any part is decoded (Authlib CVE-2025-61920).
Variables ¶
View Source
var ( // ErrInvalid is the error Parse wraps when it refuses a token. ErrInvalid = errors.New("jws: token refused") // ErrNoKey is the error Verify returns when no key of the set fits the // token and verifies its signature: a miss, which a fresher set may fix. ErrNoKey = errors.New("jws: no key verifies the token") )
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
Token is a parsed compact JWS whose header passed every check.
Click to show internal directories.
Click to hide internal directories.