Enable Basic authentication for your Quarkus project and allow users to authenticate with a username and password.

Prerequisites

  • You have installed at least one extension that provides an IdentityProvider based on username and password, such as Elytron JDBC.

    1. Enable Basic authentication by setting the value of quarkus.http.auth.basic property to true.

      quarkus.http.auth.basic=true

For a Basic authentication configuration walk-through that uses JPA, see the Secure a Quarkus application with Basic authentication guide.

Additional resources