开发者

DotNetOpenAuth and Google OpenID implementation

It's a relatively well-known fact that Googles' OpenID Provider does not provide (no pun) username and various other properties, as well as that it generates really ugly claimed identifiers.

However, in a recent Hanselminutes ep开发者_StackOverflow中文版isode (at arount 21 minutes into the show) Andrew Arnott says that "Google has special requirements before they'll actually give a name and an email address".

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


You never get the Google username, but you can get the email address and first and last name of the user if your formulate the request right.

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

Basically you need to send an AX fetch request that "requires" first name, last name, and email address. I should write a blog post on exactly what you need to do in DotNetOpenAuth to accomplish this. Leave a comment on this answer if you think that would be helpful. In the meantime, you can check out the changeset I link to above and see if that gets you going.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜