Я использую Dotnetopenid для моего OpenId решения, все в порядке, когда с помощью встроенного в пользовательский элемент управления, но когда я хочу реализовать programmaticaly, как приведенный ниже код,DotNetOpenID Programmatic Войти
openid.Response.GetExtension<DotNetOpenId.Extensions.SimpleRegistration.ClaimsResponse>();
всегда ноль. любая идея?
OpenIdRelyingParty openid = createRelyingParty();
if (openid.Response != null) {
switch (openid.Response.Status) {
case AuthenticationStatus.Authenticated:
// This is where you would look for any OpenID extension responses included
// in the authentication assertion.
// var extension = openid.Response.GetExtension<SomeExtensionResponseType>();
// Use FormsAuthentication to tell ASP.NET that the user is now logged in,
// with the OpenID Claimed Identifier as their username.
State.ProfileFields = openid.Response.GetExtension<DotNetOpenId.Extensions.SimpleRegistration.ClaimsResponse>();
FormsAuthentication.RedirectFromLoginPage(openid.Response.ClaimedIdentifier, false);
break;
Не могли бы вы указать некоторые пошаговые инструкции по реализации DotNetOpenId в MVC. Я новичок в MVC и OpenId. – Picflight
@Picflight вы можете проверить здесь http://stackoverflow.com/questions/933884/request-for-tutorial-to-add-openid-support-to-nerddinner-asp-net-mvc-application – mohamadreza