Signer

The Delta Signer package implements the CVT1 request signing scheme.

covata.delta.signer.get_updated_headers(identity_id, method, url, headers, payload, private_signing_key)[source]

Gets an updated header dictionary with an authorization header signed using the CVT1 request signing scheme.

Parameters:
  • identity_id (str) – the authorizing identity id
  • method (str) – the HTTP request method
  • url (str) – the delta url
  • headers (dict[str, str]) – the request headers
  • payload (bytes) – the request payload
  • private_signing_key – the private signing key object
Returns:

the original headers with additional Cvt-Date, Host, and Authorization headers.

Return type:

dict[str, str]