Skip to main content
After installing the Access Manager tool, you must enable it for it to function properly. This means updating the Auth variables in the .env files of Midaz Ledger, Midaz Console, or any plugin where you want to use Access Manager. Your configuration should look like this:
# AUTH CONFIGS
PLUGIN_AUTH_ENABLED=true
PLUGIN_AUTH_HOST=http://plugin-auth:4000
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 .env file should be in the root directory of the plugin.
Can’t see the files? Try adjusting your system settings to show hidden files since.env files are often hidden by default.

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:
make down
3
Then rebuild everything:
make rebuild-up