[keycloak-dev] [keycloak-user] [keycloak-spring-boot-adapter] disable security via application.properties file

Alexander Schwartz alexander.schwartz at gmx.net
Fri Apr 21 10:53:57 EDT 2017

Hi keycloak developers,

I like this idea to be able to disable keycloak with a property. It 
would be useful in the keycloak-spring projects that I've seen

The convention with other libraries is usually to add a property like


to the spring boot configuration file and a

@ConditionalOnProperty(value = "keycloak.enabled", matchIfMissing = true)

to the spring autoconfiguration.

What do you think? If this is OK-ed, I'll open a JIRA and prepare a PR.


Am 10.03.2017 um 16:49 schrieb Pavel Maslov:
> Hi all,
> Sometimes (for testing purposes) I need to disable keycloak security
> Is it possible to do so via application.properties file? Right now
> apart from the properties file I also have to comment out these
> dependencies and rebuild the project:
> compile 'org.keycloak:keycloak-spring-boot-adapter:2.5.1.Final'
> compile 'org.keycloak:keycloak-tomcat8-adapter:2.5.1.Final'
> Regards,
> Pavel Maslov, MS
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user

Alexander Schwartz (alexander.schwartz at gmx.net)

More information about the keycloak-dev mailing list