Package org.openid4java.message.ax

Examples of org.openid4java.message.ax.FetchRequest.addAttribute()


      FetchRequest fetch = FetchRequest.createFetchRequest();
      System.out.println("fetching attributes");
      fetch.addAttribute("oiFirstName", "http://schema.openid.net/namePerson/first", true);
      fetch.addAttribute("oiLastName", "http://schema.openid.net/namePerson/last", true);
      fetch.addAttribute("aFirstName", "http://axschema.org/namePerson/first", true);
      fetch.addAttribute("aLastName", "http://axschema.org/namePerson/last", true);
      fetch.addAttribute("aFullName", "http://axschema.org/namePerson", true);
      fetch.addAttribute("aNickName", "http://axschema.org/namePerson/friendly", true);
      fetch.addAttribute("oiNickName", "http://openid.net/schema/namePerson/friendly", true);
      fetch.addAttribute("aEmail", "http://axschema.org/contact/email", true);
      fetch.addAttribute("oiEmail", "http://schema.openid.net/contact/email", true);
View Full Code Here


      System.out.println("fetching attributes");
      fetch.addAttribute("oiFirstName", "http://schema.openid.net/namePerson/first", true);
      fetch.addAttribute("oiLastName", "http://schema.openid.net/namePerson/last", true);
      fetch.addAttribute("aFirstName", "http://axschema.org/namePerson/first", true);
      fetch.addAttribute("aLastName", "http://axschema.org/namePerson/last", true);
      fetch.addAttribute("aFullName", "http://axschema.org/namePerson", true);
      fetch.addAttribute("aNickName", "http://axschema.org/namePerson/friendly", true);
      fetch.addAttribute("oiNickName", "http://openid.net/schema/namePerson/friendly", true);
      fetch.addAttribute("aEmail", "http://axschema.org/contact/email", true);
      fetch.addAttribute("oiEmail", "http://schema.openid.net/contact/email", true);
     
View Full Code Here

      fetch.addAttribute("oiFirstName", "http://schema.openid.net/namePerson/first", true);
      fetch.addAttribute("oiLastName", "http://schema.openid.net/namePerson/last", true);
      fetch.addAttribute("aFirstName", "http://axschema.org/namePerson/first", true);
      fetch.addAttribute("aLastName", "http://axschema.org/namePerson/last", true);
      fetch.addAttribute("aFullName", "http://axschema.org/namePerson", true);
      fetch.addAttribute("aNickName", "http://axschema.org/namePerson/friendly", true);
      fetch.addAttribute("oiNickName", "http://openid.net/schema/namePerson/friendly", true);
      fetch.addAttribute("aEmail", "http://axschema.org/contact/email", true);
      fetch.addAttribute("oiEmail", "http://schema.openid.net/contact/email", true);
     
      System.out.println("adding extension");
View Full Code Here

      fetch.addAttribute("oiLastName", "http://schema.openid.net/namePerson/last", true);
      fetch.addAttribute("aFirstName", "http://axschema.org/namePerson/first", true);
      fetch.addAttribute("aLastName", "http://axschema.org/namePerson/last", true);
      fetch.addAttribute("aFullName", "http://axschema.org/namePerson", true);
      fetch.addAttribute("aNickName", "http://axschema.org/namePerson/friendly", true);
      fetch.addAttribute("oiNickName", "http://openid.net/schema/namePerson/friendly", true);
      fetch.addAttribute("aEmail", "http://axschema.org/contact/email", true);
      fetch.addAttribute("oiEmail", "http://schema.openid.net/contact/email", true);
     
      System.out.println("adding extension");
      authReq.addExtension(fetch);
View Full Code Here

      fetch.addAttribute("aFirstName", "http://axschema.org/namePerson/first", true);
      fetch.addAttribute("aLastName", "http://axschema.org/namePerson/last", true);
      fetch.addAttribute("aFullName", "http://axschema.org/namePerson", true);
      fetch.addAttribute("aNickName", "http://axschema.org/namePerson/friendly", true);
      fetch.addAttribute("oiNickName", "http://openid.net/schema/namePerson/friendly", true);
      fetch.addAttribute("aEmail", "http://axschema.org/contact/email", true);
      fetch.addAttribute("oiEmail", "http://schema.openid.net/contact/email", true);
     
      System.out.println("adding extension");
      authReq.addExtension(fetch);
      // redirect to OpenID for authentication
View Full Code Here

      fetch.addAttribute("aLastName", "http://axschema.org/namePerson/last", true);
      fetch.addAttribute("aFullName", "http://axschema.org/namePerson", true);
      fetch.addAttribute("aNickName", "http://axschema.org/namePerson/friendly", true);
      fetch.addAttribute("oiNickName", "http://openid.net/schema/namePerson/friendly", true);
      fetch.addAttribute("aEmail", "http://axschema.org/contact/email", true);
      fetch.addAttribute("oiEmail", "http://schema.openid.net/contact/email", true);
     
      System.out.println("adding extension");
      authReq.addExtension(fetch);
      // redirect to OpenID for authentication
      System.out.println("sending redirect");
View Full Code Here

        try {
            authReq = consumerManager.authenticate(information, returnToUrl, realm);
            if (!attributesToFetch.isEmpty()) {
                FetchRequest fetchRequest = FetchRequest.createFetchRequest();
                for (OpenIDAttribute attr : attributesToFetch) {
                    fetchRequest.addAttribute(attr.getName(), attr.getType(), attr.isRequired(), attr.getCount());
                }
                authReq.addExtension(fetchRequest);
            }
        } catch (MessageException e) {
            throw new OpenIDConsumerException("Error processing ConsumerManager authentication", e);
View Full Code Here

      // Build the FetchRequest containing the information to be copied
      // from the OpenID provider
      FetchRequest fetch = FetchRequest.createFetchRequest();
      // Attempt to decode each entry
      if (identifier.startsWith(GOOGLE_ENDPOINT)) {
        fetch.addAttribute("email", "http://axschema.org/contact/email", true);
        fetch.addAttribute("firstName", "http://axschema.org/namePerson/first", true);
        fetch.addAttribute("lastName", "http://axschema.org/namePerson/last", true);
      } else if (identifier.startsWith(YAHOO_ENDPOINT)) {
        fetch.addAttribute("email", "http://axschema.org/contact/email", true);
        fetch.addAttribute("fullname", "http://axschema.org/namePerson", true);
View Full Code Here

      // from the OpenID provider
      FetchRequest fetch = FetchRequest.createFetchRequest();
      // Attempt to decode each entry
      if (identifier.startsWith(GOOGLE_ENDPOINT)) {
        fetch.addAttribute("email", "http://axschema.org/contact/email", true);
        fetch.addAttribute("firstName", "http://axschema.org/namePerson/first", true);
        fetch.addAttribute("lastName", "http://axschema.org/namePerson/last", true);
      } else if (identifier.startsWith(YAHOO_ENDPOINT)) {
        fetch.addAttribute("email", "http://axschema.org/contact/email", true);
        fetch.addAttribute("fullname", "http://axschema.org/namePerson", true);
      } else { // works for myOpenID
View Full Code Here

      FetchRequest fetch = FetchRequest.createFetchRequest();
      // Attempt to decode each entry
      if (identifier.startsWith(GOOGLE_ENDPOINT)) {
        fetch.addAttribute("email", "http://axschema.org/contact/email", true);
        fetch.addAttribute("firstName", "http://axschema.org/namePerson/first", true);
        fetch.addAttribute("lastName", "http://axschema.org/namePerson/last", true);
      } else if (identifier.startsWith(YAHOO_ENDPOINT)) {
        fetch.addAttribute("email", "http://axschema.org/contact/email", true);
        fetch.addAttribute("fullname", "http://axschema.org/namePerson", true);
      } else { // works for myOpenID
        fetch.addAttribute("fullname", "http://schema.openid.net/namePerson", true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.