Package io.quarkus.security.deployment
Interface SecurityConfig
@ConfigMapping(prefix="quarkus.security")
@ConfigRoot
public interface SecurityConfig
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether authorization is enabled in dev mode or not.booleanIf set to true, access to all methods of beans that have any security annotations on other members will be denied by default.Security provider configurationList of security providers to register
-
Method Details
-
authorizationEnabledInDevMode
@WithName("auth.enabled-in-dev-mode") @WithDefault("true") boolean authorizationEnabledInDevMode()Whether authorization is enabled in dev mode or not. In other launch modes authorization is always enabled. -
securityProviders
List of security providers to register -
securityProviderConfig
Security provider configuration -
denyUnannotatedMembers
@WithDefault("false") boolean denyUnannotatedMembers()If set to true, access to all methods of beans that have any security annotations on other members will be denied by default. E.g. if enabled, in the following bean,methodBwill be denied.@ApplicationScoped public class A { @RolesAllowed("admin") public void methodA() { ... } public void methodB() { ... } }
-