null ClaimsResponse with DotNetOpenAuth in ASP.NET MVC 2 application

折月煮酒 提交于 2019-12-08 19:36:28
Andrew Arnott

Please look through all the similar questions.Refer this

Your code looks fine. Make sure you activate the AXFetchAsSregTransform in your web.config file though to maximize the chance of you getting something back. It's up to the Provider to give you any attributes though. Some Providers like Yahoo require that your RP correctly implement RP Discovery, which the sample RPs that come with DotNetOpenAuth demonstrate.

Here is my blog post on getting RP Discovery done right. Do this, and try the sites you've been testing against again. Keep in mind as well that some Providers cache RP Discovery results, so you might apply all your RP Discovery fixes, and still have to wait an hour or a day before the Providers start giving you data.

I had the same issue until I discovered that for Google you have to set the email field to DomainLevel.Require instead of DomainLevel.Request (Optional)

fields.Email = DemandLevel.Require;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!