.env files of any Lerian product or plugin where you want to use Access Manager.
Your configuration should look like this:
Once Access Manager is enabled, all API requests must include an
Authorization header with a valid Bearer access token.Without this header, your requests will be rejected, even for public or previously accessible endpoints.Learn how to generate and use access tokens.Where to update
You’ll find the relevant
.env files in these locations:
- Midaz Ledger
/midaz/components/onboarding/midaz/components/transaction/midaz/components/console(older versions of Midaz)
- Other products and plugins
- The
.envfile should be in the root directory of the product or plugin (e.g., Reporter, Tracer, Flowker, CRM, Fees Engine).
- The
Rebuild after changes
After updating the environment, rebuild your Docker images to apply the changes:

