Open RogelioCodes opened 1 year ago
That looping usually means that the application is generating an exception during login but the error page it is redirecting to itself is being blocked by your interceptUrlMap so it tries to login again which results in the looping behavior.
Try enabling debug logging and you will see the error (and a lot of unrelated noise).
<logger name="org.springframework.security.saml2" level="debug" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.springframework.web.authentication" level="debug" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
<logger name="org.grails.plugin.springsecurity.saml" level="debug" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
//logger("org.opensaml", DEBUG, ['STDOUT'])
//logger("org.springframework.security.saml", DEBUG, ['STDOUT'])
//logger("org.grails.plugin.springsecurity.saml", DEBUG, ['STDOUT'])
//logger("grails.plugin.springsecurity", TRACE, ['STDOUT'])
You may need to enable the opensaml package too but I usually leave it out because opensaml errors are rare for me.
Sorry if this is a stupid question but for the code you linked, where exactly would that go? It looks like markup language. @valentingoebel
@valentingoebel we do have some logging indicating that we are having success. Any ideas on what else could be causing an authentication loop?
2022-11-01 17:51:02,310 INFO org.springframework.security.saml.log.SAMLDefaultLogger - AuthNRequest;SUCCESS;HIDDEN_IP;HIDDEN_LINK;HIDDEN_SIGNIN_LINK;;;
Hello, I am having an issue with an endless authentication loop after logging in. We will get redirected to the saml login page provided by our provider, we even get a two factor authentication push, and after the login it will keep looping us through that same login page. Does anyone have experience with this?
We do not get any errors. I am kind of stumped. Here is my application.yml
| Grails Version: 4.0.3 | JVM Version: 1.8.0_292
` grails:
`
`
`