Latch. DPoP
(latch v0.1.0)
Copy Markdown
DPoP (RFC 9449) proof JWTs for atproto OAuth.
Summary
Functions
S256 hash of an access token for the ath claim (same as PKCE S256)
Generates a new ES256 (P-256) key pair as a JOSE JWK map.
Signs a DPoP proof JWT for an HTTP request.
RFC 7638 thumbprint of a plain JWK map.
Functions
S256 hash of an access token for the ath claim (same as PKCE S256)
@spec generate_key() :: map()
Generates a new ES256 (P-256) key pair as a JOSE JWK map.
Signs a DPoP proof JWT for an HTTP request.
Arguments
jwk— private JOSE JWK map for this OAuth sessionmethod— HTTP method (e.g."POST")url— request URL; query string is stripped forhtuper atproto
Options
:nonce— server DPoP nonce (omit when unknown):access_token— addsath(S256 hash) for PDS/resource requests:jti— overridejti(tests):iat— overrideiat(tests) Note: atproto currently says do not includeisson PDS-bound proofs.
RFC 7638 thumbprint of a plain JWK map.