Ich verwende DotNetOpenID für meine openid Lösung, alles ist in Ordnung, wenn der Benutzer die Kontrolle in-built verwenden, aber wenn ich will es programmaticaly implementieren, wie der Code unten,DotNetOpenID Programmatische Anmeldung
openid.Response.GetExtension<DotNetOpenId.Extensions.SimpleRegistration.ClaimsResponse>();
ist immer Null. eine Idee?
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;
Können Sie bitte auf einige Schritt für Schritt Anweisungen zur Implementierung von DotNetOpenId in MVC zeigen. Ich bin ein Anfänger mit MVC und OpenId. – Picflight
@Picflight können Sie hier http://stackoverflow.com/questions/933884/request-for-tutorial-to-add-openid-support-to-nerddinner-asp-net-mvc-application überprüfen – mohamadreza