Hi folks, I got into an issue with Spring Security...
# questions
g
Hi folks, I got into an issue with Spring Security porting Dueuno Elements to Grails 7. I don't know if it's a misconfiguration or a bug, if someone is willing to help, you can just download the project from here
<https://github.com/dueuno-projects/dueuno-elements/tree/feature/grails-7>
and
bootRun
the
app-test
module. Setting a breakpoint at line
229
of the
SpringSecurityCoreGrailsPlugin
class you will see that
Metadata.current.getGrailsVersion()
returns
null
. Any idea how can I fix this?
s
do you have an issue to reference in github?
g
I haven’t opened an issue yet cause it may be just a misconfigiration by my side, I’ll open one
s
Spring Security 7 plugin doesn’t work without a few configuration work arounds
g
@scott is there a place where I can find what must be changed in the config?
s
You just need to exclude any spring security auto configurations in application.yml. Create an issue and paste the link here and I can add the relevant properties in the issue
g
You mean adding this?
Copy code
spring:
  autoconfigure:
    exclude: org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration
Okay, you have an issue here: https://github.com/grails/grails-spring-security-core/issues/1033 Let me know if I that's ok 👍
s
@giangio should work now. Please reopen issue if not
👍 1