gpop

Types

An ES256 key pair suitable for DPoP proofs

pub opaque type Key

Values

pub fn generate_key() -> Key

Generate a new ES256 key pair suitable for DPoP proofs.

pub fn with_authorization(
  request req: request.Request(body),
  key key: Key,
  access_token access_token: String,
  nonce nonce: option.Option(String),
) -> request.Request(body)

Attach an Authorization header using the DPoP scheme together with the accompanying proof bound to the access token.

pub fn with_proof(
  request req: request.Request(body),
  key key: Key,
  nonce nonce: option.Option(String),
) -> request.Request(body)

Attach a standalone DPoP proof header to the request.

Search Document