SEC-581: Copy authentication details to CAS result token

This commit is contained in:
Luke Taylor
2008-02-15 14:11:56 +00:00
parent be62979a01
commit 985818ae2c
2 changed files with 6 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ public class CasAuthenticationProvider implements AuthenticationProvider, Initia
if (result == null) {
result = this.authenticateNow(authentication);
result.setDetails(authentication.getDetails());
}
if (stateless) {
@@ -132,8 +133,7 @@ public class CasAuthenticationProvider implements AuthenticationProvider, Initia
return result;
}
private CasAuthenticationToken authenticateNow(Authentication authentication)
throws AuthenticationException {
private CasAuthenticationToken authenticateNow(Authentication authentication) throws AuthenticationException {
// Validate
TicketResponse response = ticketValidator.confirmTicketValid(authentication.getCredentials().toString());