Don't add exception to session if allowSessionCreation is false.
This commit is contained in:
parent
3da2471b7f
commit
e42fdf29ae
|
@ -184,9 +184,11 @@ public class OpenIdAuthenticationProcessingFilter extends AbstractProcessingFilt
|
||||||
logger.debug("Authentication request failed: " + failed.toString());
|
logger.debug("Authentication request failed: " + failed.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (getAllowSessionCreation()) {
|
||||||
request.getSession().setAttribute(SPRING_SECURITY_LAST_EXCEPTION_KEY, failed);
|
try {
|
||||||
} catch (Exception ignored) {
|
request.getSession().setAttribute(SPRING_SECURITY_LAST_EXCEPTION_KEY, failed);
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
super.getRememberMeServices().loginFail(request, response);
|
super.getRememberMeServices().loginFail(request, response);
|
||||||
|
|
Loading…
Reference in New Issue