Interface SecurityConfig


@ConfigMapping(prefix="quarkus.security") @ConfigRoot public interface SecurityConfig
  • 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

      Optional<Set<String>> securityProviders()
      List of security providers to register
    • securityProviderConfig

      @ConfigDocMapKey("provider-name") Map<String,String> 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, methodB will be denied.
         @ApplicationScoped
         public class A {
            @RolesAllowed("admin")
            public void methodA() {
                ...
            }
            public void methodB() {
                ...
            }
         }