MessageExtension ext = authSuccess.getExtension(SRegMessage.OPENID_NS_SREG);
if (ext instanceof SRegResponse) {
SRegResponse sregResp = (SRegResponse) ext;
for (Iterator iter = sregResp.getAttributeNames().iterator(); iter.hasNext();) {
String name = (String) iter.next();
<BUG>String value = sregResp.getParameterValue(name);
httpReq.setAttribute(name, value);
}</BUG>
}
}

MessageExtension ext = authSuccess.getExtension(SRegMessage.OPENID_NS_SREG);
if (ext instanceof SRegResponse) {
SRegResponse sregResp = (SRegResponse) ext;
for (Iterator iter = sregResp.getAttributeNames().iterator(); iter.hasNext();) {
String name = (String) iter.next();
if (LOG.isDebugEnabled())
LOG.debug(name + " : " + sregResp.getParameterValue(name));
principal.setAttribute(name, sregResp.getParameterValue(name));
}
}
}
