SEC-662: Add check for a null authentication object returned by provider and skip passing it to session controller.

This commit is contained in:
Luke Taylor 2008-02-04 19:27:12 +00:00
parent 9be3f20faa
commit 3f1ab233dc

View File

@ -207,8 +207,11 @@ public class ProviderManager extends AbstractAuthenticationManager implements In
try { try {
result = provider.authenticate(authentication); result = provider.authenticate(authentication);
if (result != null) {
copyDetails(authentication, result); copyDetails(authentication, result);
sessionController.checkAuthenticationAllowed(result); sessionController.checkAuthenticationAllowed(result);
}
} catch (AuthenticationException ae) { } catch (AuthenticationException ae) {
lastException = ae; lastException = ae;
result = null; result = null;