[keycloak-dev] [keycloak-user] [keycloak-spring-boot-adapter] disable security via application.properties file
David Klassen
daviddd.kl at gmail.com
Fri Apr 28 04:36:32 EDT 2017
I had the same issue in the past. This was my solution:
*You can disable the keycloak by excluding the autoconfiguration in your
application.properties:*
spring.autoconfigure.exclude=org.keycloak.adapters.springboot.KeycloakSpringBootConfiguration
Full example here:
https://github.com/daklassen/budgeteer/blob/master/budgeteer-web-interface/src/main/resources/application.properties
Hope this helps :)
2017-04-28 8:53 GMT+02:00 Alexander Schwartz <alexander.schwartz at gmx.net>:
> This is now being tracked as KEYCLOAK-4814
>
>
> Am 22.04.2017 um 09:10 schrieb Sebastien Blanc:
> > Sure ! Go for it !
> >
> > On Fri, Apr 21, 2017 at 4:53 PM, Alexander Schwartz
> > <alexander.schwartz at gmx.net <mailto:alexander.schwartz at gmx.net>> wrote:
> >
> > 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
> >
> > keycloak.enabled=false
> >
> > 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.
> >
> > Thanks,
> > Alexander
> >
> >
> > 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 <mailto:keycloak-user at lists.
> jboss.org>
> > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> > <https://lists.jboss.org/mailman/listinfo/keycloak-user>
> >
> > --
> > Alexander Schwartz (alexander.schwartz at gmx.net
> > <mailto:alexander.schwartz at gmx.net>)
> > http://www.ahus1.de
> >
> > _______________________________________________
> > keycloak-dev mailing list
> > keycloak-dev at lists.jboss.org <mailto:keycloak-dev at lists.jboss.org>
> > https://lists.jboss.org/mailman/listinfo/keycloak-dev
> > <https://lists.jboss.org/mailman/listinfo/keycloak-dev>
> >
> >
>
> --
> Alexander Schwartz (alexander.schwartz at gmx.net)
> http://www.ahus1.de
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
More information about the keycloak-dev
mailing list