JWT

AKHQ uses signed JWT tokens to perform authentication.

Please generate a secret that is at least 256 bits.

You can use one of the following methods to provide the generated secret to AKHQ.

Configuration File

Provide the generated secret via the AKHQ application.yml via the following directive:

micronaut:
  security:
    enabled: true
    token:
      jwt:
        signatures:
          secret:
            generator:
              secret: <your secret here>
1
2
3
4
5
6
7
8
9

Environment Variable

Provide the generated secret via Micronaut Property Value Bindingopen in new window using the following environment variable for the execution environment of AKHQ:

MICRONAUT_SECURITY_TOKEN_JWT_SIGNATURES_SECRET_GENERATOR_SECRET="<your secret here>"
1