I had to write accustom principal resolver for my authentication. I wanted to
return some user attributes but I seem to be doing something wrong.
Here is the code
PersonCredentials.PersonCredential personCredentials =
response.getPersonCredential();
String principalId = personCredentials.getUsername();
final Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("PersonID", personCredentials.getPersonId());
attributes.put("SubscriberKey", personCredentials.getSubscriberKey());
return new SimplePrincipal(principalId, attributes);
What I get back in the response on the client is just the username.
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationSuccess>
<cas:user>someuser</cas:user>
</cas:authenticationSuccess>
</cas:serviceResponse>
Do I need to use a client to get to the attributes or should they just be in
the response as tags under the username?
thanks
Jonathan Bricker
ExactTarget
Senior Software Engineer
Office | 317.524.2789
Cell | 317.435.0763
Email | [email protected]<mailto:[email protected]>
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user