Retrieving fullname attribute from GMail/Google App account

7 views
Skip to first unread message

Bastiaan Welmers

unread,
Sep 3, 2010, 10:03:12 AM9/3/10
to dyupr...@googlegroups.com
Hi there,

Has someone been able to retrieve a name attribute from
GMail/Google Apps accounts? I tried the exchange attribute
"fullname" and "nickname" but it returns null. The code summary
for the servlet I am using can be found on :
http://www.welmers.net/~bastiaan/OpenIdServlet.java

When on the google page, it only asks for permission
of the email and language attribute.

Thanks in advance,

Bastiaan Welmers

David Yu

unread,
Sep 3, 2010, 10:19:44 AM9/3/10
to dyupr...@googlegroups.com
Google only supplies:
"country"
"email"
"firstname"
"language"
"lastname"

See http://code.google.com/apis/accounts/docs/OpenID.html



--
You received this message because you are subscribed to the Google Groups "dyuproject" group.
To post to this group, send email to dyupr...@googlegroups.com.
To unsubscribe from this group, send email to dyuproject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dyuproject?hl=en.




--
When the cat is away, the mouse is alone.
- David Yu

Bastiaan Welmers

unread,
Sep 3, 2010, 10:48:26 AM9/3/10
to dyupr...@googlegroups.com
On Fri, Sep 03, 2010 at 10:19:44PM +0800, David Yu wrote:
> Google only supplies:
> "country"
> "email"
> "firstname"
> "language"
> "lastname"
>
> See http://code.google.com/apis/accounts/docs/OpenID.html
> <http://code.google.com/apis/accounts/docs/OpenID.html>
>

Thanks.

I've read that, but I thought the 'includes' means that those
attributes are possible but there may be more. And I've always
entered my full name at google as one field, so I don't get how
google could split these up in firstname and lastname.

When I add firstname to the list of attributes, I get an
exception:

java.lang.IllegalArgumentException: 'firstname' not found. The ff are supported:
nickname,email,fullname,dob,gender,postcode,country,language,timezone
at com.dyuproject.openid.ext.SRegExtension.addExchange(SRegExtension.java:106)

/Bastiaan

David Yu

unread,
Sep 3, 2010, 11:08:40 AM9/3/10
to dyupr...@googlegroups.com
Google only supports AxSchema.
For SReg, firstname is not a vaild attribute exchange.

Cheers

 

/Bastiaan


--
You received this message because you are subscribed to the Google Groups "dyuproject" group.
To post to this group, send email to dyupr...@googlegroups.com.
To unsubscribe from this group, send email to dyuproject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dyuproject?hl=en.

Bastiaan Welmers

unread,
Sep 3, 2010, 11:28:03 AM9/3/10
to dyupr...@googlegroups.com
On Fri, Sep 03, 2010 at 11:08:40PM +0800, David Yu wrote:
> On Fri, Sep 3, 2010 at 10:48 PM, Bastiaan Welmers <haa...@welmers.net>wrote:
> > When I add firstname to the list of attributes, I get an
> > exception:
> >
> > java.lang.IllegalArgumentException: 'firstname' not found. The ff are
> > supported:
> > nickname,email,fullname,dob,gender,postcode,country,language,timezone
> > at
> > com.dyuproject.openid.ext.SRegExtension.addExchange(SRegExtension.java:106)
> >
> Google only supports AxSchema.
> For SReg, firstname is not a vaild attribute exchange.
> See "Response Format" in
> http://openid.net/specs/openid-simple-registration-extension-1_0.html
>

Great, that did the trick. (with firstname and lastname)

Thanks a lot!

/Bastiaan

Reply all
Reply to author
Forward
0 new messages