guss v0.1.1 Guss.Signature View Source

Signs resources using RSA signatures with SHA256 to authenticate requests.

Signature was built to work with a Guss.Resource, but it will accept any struct that implements List.Chars.

For more information, see Creating a Signed URL using a program.

Link to this section Summary

Functions

Signs the resource iodata using a service account key

Signs the resource iodata using a service account key

Link to this section Functions

Link to this function generate!(resource, private_key) View Source
generate!(any(), binary()) :: binary()

Signs the resource iodata using a service account key.

Same as generate/2, but raises on error.

Link to this function generate(resource, private_key) View Source
generate(any(), binary()) :: {:error, {:signature, any()}} | {:ok, binary()}

Signs the resource iodata using a service account key.

The given resource must implement the List.Chars protocol.