1 write to Context
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\HtmlPage.cs (1)
15Context = context;
71 references to Context
Microsoft.AspNetCore.Identity.FunctionalTests (71)
LoginTests.cs (4)
75var twoFactorKey = showRecoveryCodes.Context.AuthenticatorKey; 101var twoFactorKey = showRecoveryCodes.Context.AuthenticatorKey; 121var recoveryCode = showRecoveryCodes.Context.RecoveryCodes.First(); 146var recoveryCode = showRecoveryCodes.Context.RecoveryCodes.First();
ManagementTests.cs (1)
258var twoFactorKey = showRecoveryCodes.Context.AuthenticatorKey;
Pages\Account\ExternalLogin.cs (3)
36return new Index(Client, index, Context.WithAuthenticatedUser()); 51return new RegisterConfirmation(Client, register, hasRealEmail ? Context.WithRealEmailSender() : Context);
Pages\Account\ForgotPassword.cs (1)
28return new ForgotPasswordConfirmation(Client, forgotPasswordConfirmation, Context);
Pages\Account\Login.cs (7)
28if (Context.ContosoLoginEnabled) 43return new Contoso.Login(Client, contosoLogin, Context); 51return new ForgotPassword(Client, forgotPassword, Context); 59return new ResendEmailConfirmation(Client, forgotPassword, Context); 73Context.WithAuthenticatedUser().WithPasswordLogin()); 94return new DefaultUIPage(Client, lockout, Context); 115return new LoginWith2fa(Client, loginWithTwoFactor, Context);
Pages\Account\LoginWith2fa.cs (2)
38return new Index(Client, index, Context.WithAuthenticatedUser()); 46return new LoginWithRecoveryCode(Client, loginWithRecoveryCode, Context);
Pages\Account\LoginWithRecoveryCode.cs (1)
30return new Index(Client, index, Context.WithAuthenticatedUser());
Pages\Account\Manage\DeleteUser.cs (1)
27return new FunctionalTests.Index(Client, index, Context);
Pages\Account\Manage\Email.cs (5)
22Assert.True(Context.UserAuthenticated); 28if (!Context.EmailConfirmed) 36Assert.False(Context.EmailConfirmed); 43return new Email(Client, manage, Context); 56return new Email(Client, manage, Context);
Pages\Account\Manage\EnableAuthenticator.cs (3)
23Assert.True(Context.UserAuthenticated); 31Context.AuthenticatorKey = authenticatorKey; 43return new ShowRecoveryCodes(Client, showRecoveryCodes, Context);
Pages\Account\Manage\Index.cs (13)
25Assert.True(Context.UserAuthenticated); 31if (Context.ContosoLoginEnabled) 52var context = consent ? Context.WithCookieConsent() : Context; 60Context.TwoFactorEnabled = true; 61Context.CookiePolicyAccepted = true; 62return new TwoFactorAuthentication(Client, twoFactor, Context); 69return new ChangePassword(Client, changePasswordDocument, Context); 80return new SetPassword(Client, setPasswordDocument, Context); 87return new PersonalData(Client, personalData, Context); 94return new Email(Client, email, Context); 102return new LinkExternalLogin(Client, externalLoginDocument, Context); 110return new ExternalLogins(Client, externalLoginDocument, Context);
Pages\Account\Manage\LinkExternalLogin.cs (2)
30return new ManageExternalLogin(Client, externalLoginDocument, Context); 35return new RemoveExternalLogin(Client, linkedExternalLoginDocument, Context);
Pages\Account\Manage\ManageExternalLogin.cs (1)
32return new RemoveExternalLogin(Client, manageExternalLoginDocument, Context);
Pages\Account\Manage\PersonalData.cs (1)
25return new DeleteUser(Client, delete, Context.WithAnonymousUser());
Pages\Account\Manage\ResetAuthenticator.cs (1)
20Assert.True(Context.UserAuthenticated);
Pages\Account\Manage\ShowRecoveryCodes.cs (1)
17Context.RecoveryCodes = Codes.ToArray();
Pages\Account\Manage\TwoFactorAuthentication.cs (5)
17if (Context.CookiePolicyAccepted) 19if (!Context.TwoFactorEnabled) 36Assert.False(Context.TwoFactorEnabled); 41return new EnableAuthenticator(Client, enableAuthenticator, Context); 49return new ResetAuthenticator(Client, resetAuthenticator, Context);
Pages\Account\Register.cs (4)
34return new Contoso.Login(Client, contosoLogin, Context); 51return new Index(Client, index, Context.WithAuthenticatedUser()); 68return new RegisterConfirmation(Client, register, hasRealEmail ? Context.WithRealEmailSender() : Context);
Pages\Account\ResetPassword.cs (1)
39return new ResetPasswordConfirmation(Client, resetPasswordConfirmation, Context);
Pages\Contoso\Login.cs (3)
24return new ExternalLogin(Client, externalLogin, Context.WithSocialLoginProvider()); 31return new Index(Client, externalLogin, Context.WithAuthenticatedUser()); 43if (Context.ExistingUser)
Pages\Index.cs (9)
23if (!Context.UserAuthenticated) 44Assert.False(Context.UserAuthenticated); 49return new Register(Client, register, Context); 54Assert.False(Context.UserAuthenticated); 59return new Login(Client, login, Context); 64Assert.True(Context.UserAuthenticated); 69return new Account.Manage.Index(Client, manage, Context); 74Assert.True(Context.UserAuthenticated); 79return new Account.Manage.Index(Client, manage, Context
Pages\RegisterConfirmation.cs (2)
21if (Context.HasRealEmailSender) 36return await ConfirmEmail.Create(_confirmLink, Client, Context);