protected Credentials constructCredentialsFromRequest(final RequestContext context) {
final String ticketGrantingTicketId = WebUtils.getTicketGrantingTicketId(context);
final String userName = this.extractor
.extractLocalUsernameFromUri(context.getRequestParameters()
.get("openid.identity"));
final Service service = WebUtils.getService(context);
context.getExternalContext().getSessionMap().put("openIdLocalId", userName);
// clear the service because otherwise we can fake the username
if (service instanceof OpenIdService && userName == null) {