Closed irstevenson closed 1 year ago
@valentingoebel provided this advice in matrix:
SamlSecurityService
has a dependency onSpringSamlUserDetailsService userDetailsService
but I believe it's not actually using it so we could perhaps remove that code.
I've not had a chance to look at that, but sounds good. :+1:
I think the problem you are having here is disabling SAML is not taking effect as it's disabled in the code: https://github.com/jeffwils/grails-spring-security-saml/blob/8050170175ada8fa9422cf00b5695eaa0c65267e/src/main/groovy/org/grails/plugin/springsecurity/saml/SpringSecuritySamlGrailsPlugin.groovy#L79-L84
to solve this you could uncomment line 84 or add "|| !conf.saml.active" to the if statment on line 80: if (!conf || !conf.active || !conf.saml.active) { return }
Works as expected.
As per matrix discussion @ https://matrix.to/#/!FUjEjFPHmocIJkjrBw:istevenson.net/$1528950176106derpu:istevenson.net :
I've attempted to disable the SAML plugin when running my integration tests with this
application.yml
sitting in my working dir:But unfortunately, when doing
./gradlew integrationTest
all my tests failed with:Mind you, it all works fine if I just do
./gradlew bootRun
- i.e. I can even login with some users (via form auth) which I have created in the DB.Grails version: 3.3.2 Plugin version: 3.3.1-SNAPSHOT