Skip to main content
A partner can call Lerian STA with its own credential. In Lerian STA, you confine that credential to some STA credentials: the institution and operator logins Lerian STA uses to exchange files with BACEN. This page shows how to choose that scope, what it reaches, and what the partner receives when it goes outside it. Every Lerian STA partner needs a scope: at least one STA credential.

Step by step


1

Choose what the partner works with

The API field is the field of a scope entry; the Console shows the name in the first column.Each value is the ID that Lerian STA returns when you create the credential.The scope catalog lists the Lerian STA restriction. Read it with Retrieve a product’s scope catalog for br-sta.Some rules apply to every scope:
  • A request that does not name an STA credential is refused. For example, a partner cannot list the credentials, the transfers or the inbound sources of your installation.
  • A query that lists several credentials is refused when any one of them is outside the scope.
2

Give the partner its permissions and scope

Create the partner, or change it, in the Console or with the Identity API. The product slug is br-sta.
  • Add at least one scope entry for Lerian STA. Without one, Access Manager refuses the partner with 400 and IDE-1060.
  • Check the resources and actions. The most you can give is what the editor role of br-sta holds in your tenant.
Access Manager checks each permission you give against the scope. A permission that acts on the whole installation is never given to a partner, and is refused with 400 and IDE-1056 (a write) or IDE-1052 (a read no request of the partner can reach). The Console marks the line Outside the scope. In Lerian STA, these are creating STA credentials, reading, retrying and cancelling transfers, marking an inbound transfer urgent, reading, changing, deleting and polling inbound sources, the audit exports and the runtime configuration.The permissions a partner can receive are credentials with credentials:read, credentials:update, credentials:delete, credentials:test and credentials:rotate; transfers with transfers:create; inbound-source-configs with inbound-source-configs:create; and audit with audit:read.
3

Create its Lerian STA application

Create the partner’s application with the product br-sta. See Create the partner’s applications in the API guide, or in the Console. Send the client ID and the client secret to the partner through a secure channel.
4

Tell the partner how to name its credentials

On the credential routes the STA credential is already in the path. On the others, the partner names it in the body or the query that Lerian STA already has.
A partner can send a transfer with its credential but cannot read the transfer back: Lerian STA reads a transfer, an inbound source and an audit export by their own ID, which names no credential. Follow those records with your own credential.
5

Confirm that it works

This check assumes the partner has the credentials resource with the credentials:read action on Lerian STA, and a scope with one STA credential. Use the partner’s credential. Read the STA credential in its scope. The answer is 200:
Send the same request with an STA credential outside the scope. The answer is 403. To see the code, drop -o /dev/null: the response body carries STA-0004.

If something fails


The answer does not say whether the permissions or the scope refused the request. This is on purpose: a partner cannot use a refusal to learn which credentials exist outside its scope. For every other code, see the Lerian STA error list. For the refusals when you create or change a partner, see Error codes in the API guide.