私は私のOpenIDのソリューションのためのDotnetopenidを使用しています内蔵のユーザーコントロールを使用した場合、すべてが正常であるが、私はprogrammaticalyそれを実装したい場合、下記のコードのように、DotNetOpenIDプログラムによるログイン
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;
MVCでDotNetOpenIdを実装する手順をいくつか説明してください。私はMVCとOpenIdの初心者です。 – Picflight
@Picflightここで確認できますhttp://stackoverflow.com/questions/933884/request-for-tutorial-to-add-openid-support-to-nerddinner-asp-net-mvc-application – mohamadreza