Getting started with security
Red Hat build of Quarkus 3.8
Abstract
This guide demonstrates how to secure Quarkus applications by using Basic authentication and Jakarta Persistence, guiding you through prerequisites, application setup, and testing. It covers creating a Maven project, verifying dependencies, writing application endpoints, defining user entities, and configuring Basic authentication. It includes testing the application with Dev Services for PostgreSQL, compiling, running, and verifying application security using curl or a browser. By the end, you’ll understand how to implement role-based access control, readying you for more advanced mechanisms like OIDC. It details using Jakarta Persistence for security, including entity specifications, role storage, and password hashing.