1 type derived from AuthenticateResult
Microsoft.AspNetCore.Authentication (1)
4 instantiations of AuthenticateResult
Microsoft.AspNetCore.Authentication.Abstractions (4)
341 references to AuthenticateResult
Aspire.Dashboard (45)
Aspire.Dashboard.Tests (4)
Aspire.Hosting (5)
BasicWebSite (3)
CookieSample (1)
CustomAuthorizationFailureResponse (2)
DynamicSchemes (1)
JwtBearerSample (1)
Microsoft.AspNetCore.Authentication (24)
Microsoft.AspNetCore.Authentication.Abstractions (18)
Microsoft.AspNetCore.Authentication.BearerToken (7)
Microsoft.AspNetCore.Authentication.Certificate (27)
Microsoft.AspNetCore.Authentication.Cookies (18)
Microsoft.AspNetCore.Authentication.Core (8)
Microsoft.AspNetCore.Authentication.Core.Test (12)
Microsoft.AspNetCore.Authentication.JwtBearer (9)
Microsoft.AspNetCore.Authentication.Negotiate (4)
Microsoft.AspNetCore.Authentication.Negotiate.Test (1)
Microsoft.AspNetCore.Authentication.Test (43)
Microsoft.AspNetCore.Authorization.Policy (19)
Microsoft.AspNetCore.Authorization.Test (28)
PolicyEvaluatorTests.cs (13)
24var result = await evaluator.AuthenticateAsync(policy, context);
41var result = await evaluator.AuthenticateAsync(policy, context);
60var result = await evaluator.AuthenticateAsync(policy, context);
77var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Fail("Nooo"), context, resource: null);
92var success = AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(), "whatever"));
112var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Fail("Nooo"), context, resource: null);
129var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(), "scheme")), context, resource: null);
149var result = await evaluator.AuthorizeAsync(policy, AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(), "scheme")), context, resource: null);
189public Task<AuthenticateResult> AuthenticateAsync(HttpContext context, string scheme)
190=> Task.FromResult(AuthenticateResult.Fail("Sad."));
209public Task<AuthenticateResult> AuthenticateAsync(HttpContext context, string scheme)
212return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(Principal, scheme)));
Microsoft.AspNetCore.Identity (7)
Microsoft.AspNetCore.Identity.InMemory.Test (5)
Microsoft.AspNetCore.Identity.Test (26)
SignInManagerTest.cs (25)
264.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.TwoFactorRememberMeScheme))).Verifiable();
655var failedAuthenticateResult = AuthenticateResult.Fail("Not currently signed in.");
656var authenticateResult = failedAuthenticateResult;
669authenticateResult = AuthenticateResult.Success(authenticationTicket);
724.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
765.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
804.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
894.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
993var authResult = AuthenticateResult.Success(new AuthenticationTicket(claimsPrincipal, properties, "authscheme"));
1047.Returns(Task.FromResult(AuthenticateResult.NoResult())).Verifiable();
1081var authResult = AuthenticateResult.Success(new AuthenticationTicket(claimsPrincipal, new AuthenticationProperties(), "authscheme"));
1158.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
1193.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
1293.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.TwoFactorRememberMeScheme))).Verifiable();
1590var authResult = AuthenticateResult.Success(new AuthenticationTicket(principal, properties, "blah"));
1621var authResult = AuthenticateResult.Success(new AuthenticationTicket(principal, properties, "blah"));
1653var authResult = AuthenticateResult.Success(new AuthenticationTicket(principal, properties, "blah"));
1751.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
1817.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.TwoFactorUserIdScheme))).Verifiable();
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.IISIntegration (3)
Microsoft.AspNetCore.Tests (2)
OpenIdConnectSample (1)
PathSchemeSelection (2)
SecurityWebSite (1)
SocialSample (1)