Boruta.Openid.Signatures behaviour (Boruta core v3.0.0-beta.4)

View Source

Utilities to sign verifiable credentials

Summary

Callbacks

Signs the given payload according tot the given client and generates a verifiable credential

Callbacks

verifiable_credential_sign(payload, client, format)

@callback verifiable_credential_sign(
  payload :: map(),
  client :: Boruta.Oauth.Client.t(),
  format :: String.t()
) :: jwt :: String.t() | {:error, reason :: String.t()}

Signs the given payload according tot the given client and generates a verifiable credential