log.debug("Redirecting to " + openIdUrl);
}
throw new SocialAuthenticationRedirectException(openIdUrl);
} catch (OpenIDConsumerException e) {
log.debug("Failed to consume claimedIdentity: " + claimedIdentity, e);
throw new AuthenticationServiceException("Unable to process claimed identity '" + claimedIdentity + "'");
}
}
if (log.isDebugEnabled()) {
log.debug("Supplied OpenID identity is " + identity);
}
try {
OpenIDAuthenticationToken token = consumer.endConsumption(request);
String verifiedId = (String) token.getPrincipal();
ConnectionData data = new ConnectionData(connectionFactory.getProviderId(), verifiedId, null, null, null,
null, null, null, null);
return new SocialAuthenticationToken(connectionFactory.createConnection(data), obtainAccountData(token));
} catch (OpenIDConsumerException oice) {
throw new AuthenticationServiceException("Consumer error", oice);
}
}