private String claimedIdentityFieldName = DEFAULT_CLAIMED_IDENTITY_FIELD;
private static Log log = LogFactory.getLog(CustomOpenIDAuthenticationProcessingFilter.class);
@Override
public Authentication attemptAuthentication(HttpServletRequest req) throws AuthenticationException {
OpenIDAuthenticationToken auth = null;
// Processing standard OpenId user authentication
auth = (OpenIDAuthenticationToken) super.attemptAuthentication(req);
if (auth.getAuthorities()[0].getAuthority().equals("openidLogin")) {
/* TODO: when Spring Security 2.1 is released, we can uncomment
* this code, which will allow us to pre-populate the new user
* registration form with information from the OpenID Provider.
*