.env files of Midaz Ledger, Midaz Console, or any 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 and Midaz Console
/midaz/components/onboarding/midaz/components/transaction/midaz/components/console
- Other plugins
- The
.envfile should be in the root directory of the plugin.
- The
Rebuild after changes
After updating the environment, rebuild your Docker images to apply the changes:
1
In your terminal, go to the root of your Midaz project.
2
If Docker is running, stop it:
3
Then rebuild everything:

