kaleidos / grails-security-stateless

Grails plugin to implement stateless authentication using Spring Security
Apache License 2.0
17 stars 8 forks source link

Problem when disabling the Spring Security and integration is active #9

Closed Alotor closed 9 years ago

Alotor commented 9 years ago

When disabling spring security with configuration option:

grails.plugin.springsecurity.active = false

But the integration is active

grails.plugin.security.stateless.springsecurity.integration = true

There is an exception

| Error 2015-01-27 17:33:15,352 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener  - Error initializing the application: Error creating bean with name 'statelessAuthenticationProvider': Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'userDetailsService' is defined
Message: Error creating bean with name 'statelessAuthenticationProvider': Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'userDetailsService' is defined

The plugin should be disabled as well