public async Task <ActionResult> ExternalLoginConfirmation( ExternalLoginConfirmationViewModel model, string returnUrl) { if (this.get_User().Identity.IsAuthenticated) { return((ActionResult)this.RedirectToAction("Index", "Manage")); } if (this.get_ModelState().get_IsValid()) { ExternalLoginInfo info = await AuthenticationManagerExtensions.GetExternalLoginInfoAsync(this.AuthenticationManager); if (info == null) { return((ActionResult)this.View("ExternalLoginFailure")); } ApplicationUser applicationUser = new ApplicationUser(); ((IdentityUser <string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim>)applicationUser).set_UserName(model.Email); ((IdentityUser <string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim>)applicationUser).set_Email(model.Email); ApplicationUser user = applicationUser; IdentityResult result = await((Microsoft.AspNet.Identity.UserManager <ApplicationUser, string>) this.UserManager).CreateAsync(user); if (result.get_Succeeded()) { result = await((Microsoft.AspNet.Identity.UserManager <ApplicationUser, string>) this.UserManager).AddLoginAsync(((IdentityUser <string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim>)user).get_Id(), info.get_Login()); if (result.get_Succeeded()) { await this.SignInManager.SignInAsync(user, false, false); return(this.RedirectToLocal(returnUrl)); } } this.AddErrors(result); info = (ExternalLoginInfo)null; user = (ApplicationUser)null; result = (IdentityResult)null; } // ISSUE: reference to a compiler-generated field if (AccountController.\u003C\u003Eo__27.\u003C\u003Ep__0 == null) { // ISSUE: reference to a compiler-generated field AccountController.\u003C\u003Eo__27.\u003C\u003Ep__0 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "ReturnUrl", typeof(AccountController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj = AccountController.\u003C\u003Eo__27.\u003C\u003Ep__0.Target((CallSite)AccountController.\u003C\u003Eo__27.\u003C\u003Ep__0, ((ControllerBase)this).get_ViewBag(), returnUrl); return((ActionResult)this.View((object)model)); }
public async Task <ActionResult> ExternalLoginCallback(string returnUrl) { ExternalLoginInfo loginInfo = await AuthenticationManagerExtensions.GetExternalLoginInfoAsync(this.AuthenticationManager); if (loginInfo == null) { return((ActionResult)this.RedirectToAction("Login")); } SignInStatus result = await this.SignInManager.ExternalSignInAsync(loginInfo, false); switch ((int)result) { case 0: return(this.RedirectToLocal(returnUrl)); case 1: return((ActionResult)this.View("Lockout")); case 2: return((ActionResult)this.RedirectToAction("SendCode", (object)new { ReturnUrl = returnUrl, RememberMe = false })); default: // ISSUE: reference to a compiler-generated field if (AccountController.\u003C\u003Eo__26.\u003C\u003Ep__0 == null) { // ISSUE: reference to a compiler-generated field AccountController.\u003C\u003Eo__26.\u003C\u003Ep__0 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "ReturnUrl", typeof(AccountController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj1 = AccountController.\u003C\u003Eo__26.\u003C\u003Ep__0.Target((CallSite)AccountController.\u003C\u003Eo__26.\u003C\u003Ep__0, ((ControllerBase)this).get_ViewBag(), returnUrl); // ISSUE: reference to a compiler-generated field if (AccountController.\u003C\u003Eo__26.\u003C\u003Ep__1 == null) { // ISSUE: reference to a compiler-generated field AccountController.\u003C\u003Eo__26.\u003C\u003Ep__1 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "LoginProvider", typeof(AccountController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj2 = AccountController.\u003C\u003Eo__26.\u003C\u003Ep__1.Target((CallSite)AccountController.\u003C\u003Eo__26.\u003C\u003Ep__1, ((ControllerBase)this).get_ViewBag(), loginInfo.get_Login().get_LoginProvider()); return((ActionResult)this.View("ExternalLoginConfirmation", (object)new ExternalLoginConfirmationViewModel() { Email = loginInfo.get_Email() })); } }