Implementing DotNetOpenAuth and Google OpenID

It is a relatively well-known fact that the OpenID Provider Googles does not provide (without puns) the username and various other properties, and also generates really ugly declared identifiers.

However, in a recent episode of Hanselminutes (21 minutes on the show), Andrew Arnott says that "Google has special requirements before they" Actually give a name and email address. "

What are these requirements and how can Google satisfy enough to actually return a username and email address?

+4
source share
1 answer

You will never get a Google username, but you can get an email address and username if you formulate a request.

Here is the fix I applied to dasBlog so that it gets first and last name plus email address.

Basically, you need to send an AX fetch request that "requires" a first name, last name, and email address. I have to write a blog post about what you need to do in DotNetOpenAuth in order to accomplish this. Leave a comment on this answer if you think this will be useful. In the meantime, you can check out the changeset that I am referencing above and see if it will do this.

+4
source

All Articles