+ " to fetch request"); fetchRequest.addAttribute(attr.getName(), attr.getType(), attr.isRequired(), attr.getCount());
protected String authRequest(String userSuppliedString, String returnToUrl) throws IOException { ... // Attribute Exchange example: fetching the 'email' attribute FetchRequest fetch = FetchRequest.createFetchRequest(); fetch.addAttribute("email", "http://schema.openid.net/contact/email", // type URI true); // required
/** * Adds an attribute to the fetch request, with a default value-count of 1. * * @see #addAttribute(String, String, boolean, int) */ public void addAttribute(String alias, String typeUri, boolean required) throws MessageException { addAttribute(alias, typeUri, required, 1); }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * * @see #addAttribute(String, String, boolean, int) */ public void addAttribute(String alias, String typeUri, boolean required) throws MessageException { addAttribute(alias, typeUri, required, 1); }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * * @see #addAttribute(String, String, boolean, int) */ public void addAttribute(String alias, String typeUri, boolean required) throws MessageException { addAttribute(alias, typeUri, required, 1); }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * * @see #addAttribute(String, String, boolean, int) */ public void addAttribute(String alias, String typeUri, boolean required) throws MessageException { addAttribute(alias, typeUri, required, 1); }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * * @see #addAttribute(String, String, boolean, int) */ public void addAttribute(String alias, String typeUri, boolean required) throws MessageException { addAttribute(alias, typeUri, required, 1); }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * An alias is generated for the provided type URI. * * @see #addAttribute(String, String, boolean, int) */ public String addAttribute(String typeUri, boolean required) throws MessageException { String alias = generateAlias(); addAttribute(alias, typeUri, required, 1); return alias; }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * An alias is generated for the provided type URI. * * @see #addAttribute(String, String, boolean, int) */ public String addAttribute(String typeUri, boolean required) throws MessageException { String alias = generateAlias(); addAttribute(alias, typeUri, required, 1); return alias; }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * An alias is generated for the provided type URI. * * @see #addAttribute(String, String, boolean, int) */ public String addAttribute(String typeUri, boolean required) throws MessageException { String alias = generateAlias(); addAttribute(alias, typeUri, required, 1); return alias; }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * An alias is generated for the provided type URI. * * @see #addAttribute(String, String, boolean, int) */ public String addAttribute(String typeUri, boolean required) throws MessageException { String alias = generateAlias(); addAttribute(alias, typeUri, required, 1); return alias; }
/** * Adds an attribute to the fetch request, with a default value-count of 1. * An alias is generated for the provided type URI. * * @see #addAttribute(String, String, boolean, int) */ public String addAttribute(String typeUri, boolean required) throws MessageException { String alias = generateAlias(); addAttribute(alias, typeUri, required, 1); return alias; }
List<String> tokens = StringUtil.tokenize(requiredAttributes); for (String token : tokens) { fetchRequest.addAttribute(token, OpenIDAliasMapper.get(token), true); log.error("Null Type returned for " + token); fetchRequest.addAttribute(token, type, false);
private AuthRequest createOpenIdAuthRequest() { try { ConsumerManager consumerManager = OpenIdSession.get().getConsumerManager(); AuthRequest auth = consumerManager.authenticate(discoveryInformation, OpenIdSession.get() .getOpenIdReturnUrl()); if (discoveryInformation.getTypes().contains(AxMessage.OPENID_NS_AX)) { FetchRequest fetch = FetchRequest.createFetchRequest(); fetch.addAttribute("email", "http://axschema.org/contact/email", true); fetch.addAttribute("fullname", "http://axschema.org/namePerson", false); fetch.addAttribute("firstname", "http://axschema.org/namePerson/first", false); fetch.addAttribute("lastname", "http://axschema.org/namePerson/last", false); auth.addExtension(fetch); } else if (discoveryInformation.getTypes().contains(SRegMessage.OPENID_NS_SREG)) { SRegRequest sregReq = SRegRequest.createFetchRequest(); sregReq.addAttribute("fullname", true); sregReq.addAttribute("email", true); auth.addExtension(sregReq); } return auth; } catch (MessageException e) { throw new WicketRuntimeException("failed to create OpenID AuthRequest", e); } catch (ConsumerException e) { throw new WicketRuntimeException("failed to create OpenID AuthRequest", e); } }
List<String> tokens = StringUtil.tokenize(requiredAttributes); for (String token : tokens) { fetchRequest.addAttribute(token, OpenIDAliasMapper.get(token), true); System.out.println("Null Type returned for " + token); fetchRequest.addAttribute(token, type, false);
List<String> tokens = StringUtil.tokenize(requiredAttributes); for (String token : tokens) { fetchRequest.addAttribute(token, OpenIDAliasMapper.get(token), true); log.error("Null Type returned for " + token); fetchRequest.addAttribute(token, type, false);
List<String> tokens = StringUtil.tokenize(requiredAttributes); for (String token : tokens) { fetchRequest.addAttribute(token, OpenIDAliasMapper.get(token), true); log.error("Null Type returned for " + token); fetchRequest.addAttribute(token, type, false);
List<String> tokens = StringUtil.tokenize(requiredAttributes); for (String token : tokens) { fetchRequest.addAttribute(token, OpenIDAliasMapper.get(token), true); log.error("Null Type returned for " + token); fetchRequest.addAttribute(token, type, false);
List<String> tokens = StringUtil.tokenize(requiredAttributes); for (String token : tokens) { fetchRequest.addAttribute(token, OpenIDAliasMapper.get(token), true); System.out.println("Null Type returned for " + token); fetchRequest.addAttribute(token, type, false);
fetch.addAttribute("email", "http://schema.openid.net/contact/email", // type URI true); // required