Skip to main content

Delegation of authority

Delegation of AuthorityDelegation of Authority (DoA). A program option that lets your backend perform automated operations on behalf of identity users without the user being present or completing a step-up. The delegated API client authenticates with a signed client assertion and obtains an access token scoped to a specific identity, removing the need for SCA on its calls. End users grant consent once during onboarding. See the [Delegation of Authority overview](/apis/authentication/delegation-overview/) for the full flow. (DoA) enables your backend systems to perform automated operations on behalf of identity users without requiring the user to be present or to complete a step-up authentication challenge.

This is useful for scenarios where your platform needs to execute financial operations programmatically, such as automated card creation, scheduled transfers, or bulk operationsBulk OperationsThe capability of grouping multiple individual API-based actions into a batch. Bulk operations allow you to execute hundreds or thousands of operations by making only one or two API calls, increasing throughput, accomplishing actions in a secure session, and reducing complexity in your application. triggered by business logic in your backend.

For automation use cases only

Delegation of AuthorityDelegation of Authority (DoA). A program option that lets your backend perform automated operations on behalf of identity users without the user being present or completing a step-up. The delegated API client authenticates with a signed client assertion and obtains an access token scoped to a specific identity, removing the need for SCA on its calls. End users grant consent once during onboarding. See the [Delegation of Authority overview](/apis/authentication/delegation-overview/) for the full flow. is available for automation use cases only. The delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up. acts on behalf of an identity user through your backend system.

How it works​

We support three types of API clients, each designed for different interaction patterns:

User API client​

The standard API client used in the existing Weavr API integration. End users authenticate directly using their credentials, and operations are performed in the context of their active session. This client type requires Strong Customer Authentication (SCASCA (Strong Customer Authentication). Strong Customer Authentication - a two-factor authentication solution required by PSD2 regulations for when end-users are accessing their payment account sensitive information or initiating transactions. SCA requires at least two of the following: something you know (password), something you have (device), or something you are (biometrics).) step-up for sensitive operations.

Delegated API client​

A new client type that allows your backend system to perform operations on behalf of identity users. Instead of the user authenticating directly, your backend authenticates using a certificate-based mechanism and receives a delegated access token scoped to a specific identity.

Authorised API client​

A client type that lets your backend automate operations on your own corporate identity, rather than on behalf of your customers. It authenticates the same way as a delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up., but can perform only the operations agreed with our support team for your integration. See Authorised API client.

Operating modes​

User mode​

The standard mode where end users interact with your app directly. The user logs in, completes SCASCA (Strong Customer Authentication). Strong Customer Authentication - a two-factor authentication solution required by PSD2 regulations for when end-users are accessing their payment account sensitive information or initiating transactions. SCA requires at least two of the following: something you know (password), something you have (device), or something you are (biometrics). challenges when required, and performs operations through your frontend. This is the existing Weavr API authentication flow.

Delegated system mode​

Your backend system authenticates as a delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up. and obtains tokens scoped to specific identity users. Operations are executed server-to-server without requiring the user to be present. SCASCA (Strong Customer Authentication). Strong Customer Authentication - a two-factor authentication solution required by PSD2 regulations for when end-users are accessing their payment account sensitive information or initiating transactions. SCA requires at least two of the following: something you know (password), something you have (device), or something you are (biometrics). step-up is not required for operations performed via a delegated access token.

Architecture overview​

The delegated system mode flow works as follows:

  1. Your backend generates a client assertion (JWT) that identifies your delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up., signed with your private key.
  2. Your backend sends the client assertion and the target identity to our token endpoint.
  3. We verify the assertion's signature against the certificate registered for your API client, and issue a delegated access token scoped to the specified identity.
  4. Your backend uses the delegated access token to call Weavr API endpoints on behalf of that identity user.

Pre-integration setup​

Before integrating with the delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up., complete the following setup steps with Weavr:

IP allowlisting​

Provide Weavr with the static IP addresses of the backend servers that make delegated API calls. Only requests from allow-listed IPs are accepted for delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up. operations. Requests from a non-allow-listed IP are rejected with an HTTP 403 Forbidden response-check the source IP of the request if you see this error during integration.

Certificate exchange​

Weavr verifies your client assertions against an X.509 certificate that you upload for your delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up.. You need to:

  1. Generate an RSA key pair (minimum 2048-bit) and an X.509 certificate for it, PEM encoded. A self-signed certificate is accepted.
  2. Upload the certificate for your delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up.. A public key on its own is rejected: the file must start with -----BEGIN CERTIFICATE-----.
  3. Store the private key securely on your backend servers. This key is used to sign client assertions (JWTs) when requesting delegated access tokens.

For the certificate requirements, the commands to generate and check the files, and how to rotate a certificate, see Generate and upload a certificate. The steps are the same for delegated and authorised API clientsAuthorised API clientAn API client type that lets your backend call the Weavr API on your own corporate identity, without a user signing in. It authenticates with a signed client assertion, can perform only the operations agreed with Weavr for your integration, and can't act on behalf of your customers. See [Authorised API client](/apis/authentication/authorised-api-client/)..

Never expose your private key

Never expose your private key. It must remain securely stored on your backend servers and must not be shared with Weavr or any third party.

Manage API clients​

You can create and manage delegated API clientsDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up. through the Embedder PortalEmbedder PortalA web-based portal where embedders manage their Weavr account: browse customers and instruments, configure programmes, find API credentials and profile IDs, run Sandbox simulations, and inspect webhook deliveries. Sandbox and Live are separate, with their own credentials and data..

Create a delegated API client​

  1. Open API clients from the account menu in the Embedder PortalEmbedder PortalA web-based portal where embedders manage their Weavr account: browse customers and instruments, configure programmes, find API credentials and profile IDs, run Sandbox simulations, and inspect webhook deliveries. Sandbox and Live are separate, with their own credentials and data..
  2. Select Create API client and choose the Delegated client type.
  3. Provide the required configuration and save the client.
  4. Upload your X.509 certificate for the client.
  5. Note the API client ID - your backend needs this when generating client assertions.

View and edit API clients​

The Embedder PortalEmbedder PortalA web-based portal where embedders manage their Weavr account: browse customers and instruments, configure programmes, find API credentials and profile IDs, run Sandbox simulations, and inspect webhook deliveries. Sandbox and Live are separate, with their own credentials and data. displays all configured API clients with their type (User or Delegated), status, and creation date. You can update the configuration of a delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up., including rotating its certificate, from the portal.

When Delegation of AuthorityDelegation of Authority (DoA). A program option that lets your backend perform automated operations on behalf of identity users without the user being present or completing a step-up. The delegated API client authenticates with a signed client assertion and obtains an access token scoped to a specific identity, removing the need for SCA on its calls. End users grant consent once during onboarding. See the [Delegation of Authority overview](/apis/authentication/delegation-overview/) for the full flow. is turned on for your program, end users are presented with a consent screen during the KYBKYB (Know Your Business). Know Your Business - the identity verification process for corporate customers. This process allows you to securely verify your business customer's identity. Weavr asks users to submit the information and documentation they need for approval by financial providers. onboarding process. This informs them that your platform may perform certain operations on their behalf. The consent is collected once during onboarding and covers all delegated operations.

Next steps​

See Delegated API client integration for the step-by-step guide to authenticating and making API calls with a delegated API clientDelegated API clientAn API client type used with [Delegation of Authority](/apis/authentication/delegation-overview/) that authenticates with a client assertion (a JWT signed with a private key whose X.509 certificate is registered with Weavr) instead of end-user credentials. It receives access tokens scoped to a specific identity user and can perform operations server-to-server without triggering Strong Customer Authentication step-up..

To automate operations on your own corporate identity instead, see Authorised API client.