From a442129049c64bc6611efcca1452e57190ec6da6 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Sun, 17 Jun 2007 19:14:12 +0000 Subject: [PATCH] add: method Principal.getUserId() SVN: 538 --- .../authentication/crowd/CrowdAuthenticationService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/authentication/source/java/ch/systemsx/cisd/authentication/crowd/CrowdAuthenticationService.java b/authentication/source/java/ch/systemsx/cisd/authentication/crowd/CrowdAuthenticationService.java index f1d33909a0b..a6539b5487d 100644 --- a/authentication/source/java/ch/systemsx/cisd/authentication/crowd/CrowdAuthenticationService.java +++ b/authentication/source/java/ch/systemsx/cisd/authentication/crowd/CrowdAuthenticationService.java @@ -159,7 +159,7 @@ public class CrowdAuthenticationService implements IAuthenticationService } principal = null; } else { - principal = createPrincipal(parseXmlResponse); + principal = createPrincipal(user, parseXmlResponse); } if (operationLog.isInfoEnabled()) { @@ -199,12 +199,12 @@ public class CrowdAuthenticationService implements IAuthenticationService } /** Creates a <code>Principal</code> with found SOAP attributes. */ - private final static Principal createPrincipal(Map<CrowdSoapElements.SOAPAttribute, String> soapAttributes) + private final static Principal createPrincipal(String user, Map<CrowdSoapElements.SOAPAttribute, String> soapAttributes) { String firstName = soapAttributes.get(CrowdSoapElements.SOAPAttribute.givenName); String lastName = soapAttributes.get(CrowdSoapElements.SOAPAttribute.sn); String email = soapAttributes.get(CrowdSoapElements.SOAPAttribute.mail); - Principal principal = new Principal(firstName, lastName, email); + Principal principal = new Principal(user, firstName, lastName, email); principal.setProperty(CrowdSoapElements.SOAPAttribute.invalidPasswordAttempts.name(), Integer .valueOf(soapAttributes.get(CrowdSoapElements.SOAPAttribute.invalidPasswordAttempts))); principal.setProperty(CrowdSoapElements.SOAPAttribute.requiresPasswordChange.name(), Boolean -- GitLab