Intercept session timeout
I have an application written in Grails 6.x.
I use spring-security-core and spring-security-ldap plugins to authenticate against an Active directory server.
I have set a timeout of 5min and once the session expires I'm redirect correctly to the login page.
The problem rises for the ajax call, in my js code I intercept a 401 status return and then redirect the user from the front end to the login page. But this never happens because it is intercept by the backend that redirects to the login...