Documentation
¶
Overview ¶
Package dpop holds the CLI's proof-of-possession key and signs DPoP proofs (RFC 9449). auth binds every token it issues to the CLI to this key: the device code, the refresh tokens and the access tokens all need a proof signed by it.
Index ¶
Constants ¶
View Source
const Header = "DPoP"
Header is the request header carrying a proof.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key is an ES256 key pair.
func (*Key) Proof ¶
Proof signs a proof for one request. accessToken is the token the request carries, bound into the proof by its hash (ath); empty on token requests. Each call returns a new proof: auth refuses a jti it has already seen.
func (*Key) Thumbprint ¶
Thumbprint is the RFC 7638 SHA-256 thumbprint of the public key, the dpop_jkt of a device authorization.
Click to show internal directories.
Click to hide internal directories.