Skip to content

Commit 55d2823

Browse files
committed
feat: add validateAccessJwt to cloudflare:workers
Adds a new validateAccessJwt() function that validates Cloudflare Access JWTs against team-specific JWKs. The function throws AccessJwtError with specific error codes on validation failure, making error handling explicit. Key features: - No external dependencies (uses WebCrypto APIs) - Retry logic for JWKS fetch (3 attempts, 5s backoff on 5xx) - Isolate-level JWKS caching (1 hour TTL) - Team domain normalization (accepts both short and full forms) - 60s clock skew tolerance for expiration
1 parent 9a381cb commit 55d2823

File tree

8 files changed

+1250
-39
lines changed

8 files changed

+1250
-39
lines changed

.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)