extensions/security/deployment/src/main/resources/META-INF/quarkus-skill.md
@RolesAllowed("admin") — restrict to specific roles.@Authenticated — require any authenticated user.@PermitAll — allow unauthenticated access (override class-level restrictions).@DenyAll — deny all access.SecurityIdentity to access the current user's principal, roles, and attributes.identity.getPrincipal().getName() for the username.identity.hasRole("admin") for programmatic role checks.quarkus.http.auth.proactive=false for lazy authentication (only when needed).quarkus.http.auth.basic=true.quarkus.security.users.embedded), JPA, or LDAP.@TestSecurity(user = "alice", roles = "admin") to simulate authenticated users in tests.@RolesAllowed requires an identity provider to be configured (e.g. OIDC, HTTP Basic auth, or a JPA identity store via quarkus-security-jpa).