2 types derived from AuthenticationProperties
Microsoft.AspNetCore.Authentication.Core.Test (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
145 instantiations of AuthenticationProperties
Aspire.Dashboard (2)
BasicWebSite (1)
Identity.DefaultUI.WebSite (1)
Identity.ExternalClaims (2)
Keycloak.Web (2)
Microsoft.AspNetCore.Authentication (8)
Microsoft.AspNetCore.Authentication.Abstractions (2)
Microsoft.AspNetCore.Authentication.BearerToken (2)
Microsoft.AspNetCore.Authentication.Cookies (3)
Microsoft.AspNetCore.Authentication.Core.Test (23)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.Test (61)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Http.Results.Tests (9)
Microsoft.AspNetCore.Identity (5)
Microsoft.AspNetCore.Identity.Test (11)
Microsoft.AspNetCore.Mvc.Core.Test (5)
OpenIdConnectSample (1)
SocialSample (1)
WsFedSample (1)
606 references to AuthenticationProperties
Aspire.Dashboard (1)
Identity.DefaultUI.WebSite (2)
Identity.ExternalClaims (4)
IdentitySample.Mvc (2)
Microsoft.AspNetCore.Authentication (45)
Microsoft.AspNetCore.Authentication.Abstractions (62)
AuthenticationHttpContextExtensions.cs (16)
60/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
62public static Task ChallengeAsync(this HttpContext context, AuthenticationProperties? properties) =>
71/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
73public static Task ChallengeAsync(this HttpContext context, string? scheme, AuthenticationProperties? properties) =>
102/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
104public static Task ForbidAsync(this HttpContext context, AuthenticationProperties? properties) =>
113/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
115public static Task ForbidAsync(this HttpContext context, string? scheme, AuthenticationProperties? properties) =>
144/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
146public static Task SignInAsync(this HttpContext context, ClaimsPrincipal principal, AuthenticationProperties? properties) =>
155/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
157public static Task SignInAsync(this HttpContext context, string? scheme, ClaimsPrincipal principal, AuthenticationProperties? properties) =>
173/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
175public static Task SignOutAsync(this HttpContext context, AuthenticationProperties? properties) => context.SignOutAsync(scheme: null, properties: properties);
190/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
192public static Task SignOutAsync(this HttpContext context, string? scheme, AuthenticationProperties? properties) =>
IAuthenticationSchemeProvider.cs (8)
35/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>.
39/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
43/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.ForbidAsync(HttpContext, string, AuthenticationProperties)"/>.
47/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.ForbidAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
51/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.SignInAsync(HttpContext, string, System.Security.Claims.ClaimsPrincipal, AuthenticationProperties)"/>.
55/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.SignInAsync(HttpContext, string, System.Security.Claims.ClaimsPrincipal, AuthenticationProperties)"/>.</returns>
59/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>.
63/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
Microsoft.AspNetCore.Authentication.BearerToken (5)
Microsoft.AspNetCore.Authentication.Certificate (2)
Microsoft.AspNetCore.Authentication.Cookies (10)
Microsoft.AspNetCore.Authentication.Core (16)
AuthenticationSchemeProvider.cs (8)
74/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>.
78/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
85/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.ForbidAsync(HttpContext, string, AuthenticationProperties)"/>.
89/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.ForbidAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
96/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.SignInAsync(HttpContext, string, System.Security.Claims.ClaimsPrincipal, AuthenticationProperties)"/>.
100/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.SignInAsync(HttpContext, string, System.Security.Claims.ClaimsPrincipal, AuthenticationProperties)"/>.</returns>
107/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>.
111/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
Microsoft.AspNetCore.Authentication.Core.Test (53)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Google (5)
Microsoft.AspNetCore.Authentication.JwtBearer (4)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (5)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OAuth (14)
Microsoft.AspNetCore.Authentication.OpenIdConnect (28)
OpenIdConnectHandler.cs (19)
208public virtual async Task SignOutAsync(AuthenticationProperties? properties)
319AuthenticationProperties? properties = null;
362protected override async Task HandleChallengeAsync(AuthenticationProperties properties)
380private async Task HandleChallengeAsyncInternal(AuthenticationProperties properties)
553private async Task PushAuthorizationRequest(OpenIdConnectMessage authorizeRequest, AuthenticationProperties properties)
684AuthenticationProperties? properties = null;
952private AuthenticationProperties? ReadPropertiesAndClearState(OpenIdConnectMessage message)
954AuthenticationProperties? properties = null;
969private void PopulateSessionProperties(OpenIdConnectMessage message, AuthenticationProperties properties)
1042ClaimsPrincipal principal, AuthenticationProperties properties)
1112/// <param name="properties">The <see cref="AuthenticationProperties"/> in which tokens are saved.</param>
1114private void SaveTokens(AuthenticationProperties properties, OpenIdConnectMessage message)
1208private async Task<MessageReceivedContext> RunMessageReceivedEventAsync(OpenIdConnectMessage message, AuthenticationProperties? properties)
1232private async Task<TokenValidatedContext> RunTokenValidatedEventAsync(OpenIdConnectMessage authorizationResponse, OpenIdConnectMessage? tokenEndpointResponse, ClaimsPrincipal user, AuthenticationProperties properties, JwtSecurityToken jwt, string? nonce)
1258private async Task<AuthorizationCodeReceivedContext> RunAuthorizationCodeReceivedEventAsync(OpenIdConnectMessage authorizationResponse, ClaimsPrincipal? user, AuthenticationProperties properties, JwtSecurityToken? jwt)
1308AuthenticationProperties properties)
1333private async Task<UserInformationReceivedContext> RunUserInformationReceivedEventAsync(ClaimsPrincipal principal, AuthenticationProperties properties, OpenIdConnectMessage message, JsonDocument user)
1384private ClaimsPrincipal ValidateToken(string idToken, AuthenticationProperties properties, TokenValidationParameters validationParameters, out JwtSecurityToken jwt)
1441private async Task<TokenValidationResult> ValidateTokenUsingHandlerAsync(string idToken, AuthenticationProperties properties, TokenValidationParameters validationParameters)
Microsoft.AspNetCore.Authentication.Test (115)
Microsoft.AspNetCore.Authentication.Twitter (10)
Microsoft.AspNetCore.Authentication.WsFederation (8)
Microsoft.AspNetCore.Authorization.Test (12)
PolicyEvaluatorTests.cs (8)
192public Task ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties)
195public Task ForbidAsync(HttpContext context, string scheme, AuthenticationProperties properties)
198public Task SignInAsync(HttpContext context, string scheme, ClaimsPrincipal principal, AuthenticationProperties properties)
201public Task SignOutAsync(HttpContext context, string scheme, AuthenticationProperties properties)
215public Task ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties)
218public Task ForbidAsync(HttpContext context, string scheme, AuthenticationProperties properties)
221public Task SignInAsync(HttpContext context, string scheme, ClaimsPrincipal principal, AuthenticationProperties properties)
224public Task SignOutAsync(HttpContext context, string scheme, AuthenticationProperties properties)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Results (48)
Results.cs (12)
27/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
34/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
39AuthenticationProperties? properties = null,
44/// Creates a <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ForbidAsync(HttpContext, string?, AuthenticationProperties?)"/>.
50/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
58public static IResult Forbid(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
62/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignInAsync(HttpContext, string?, ClaimsPrincipal, AuthenticationProperties?)" />.
65/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param>
70AuthenticationProperties? properties = null,
75/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignOutAsync(HttpContext, string?, AuthenticationProperties?)" />.
77/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param>
80public static IResult SignOut(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
TypedResults.cs (12)
27/// Creates a <see cref="ChallengeHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
34/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
39AuthenticationProperties? properties = null,
44/// Creates a <see cref="ForbidHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ForbidAsync(HttpContext, string?, AuthenticationProperties?)"/>.
54/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
58public static ForbidHttpResult Forbid(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
62/// Creates a <see cref="SignInHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignInAsync(HttpContext, string?, ClaimsPrincipal, AuthenticationProperties?)" />.
65/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param>
70AuthenticationProperties? properties = null,
79/// Creates a <see cref="SignOutHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignOutAsync(HttpContext, string?, AuthenticationProperties?)" />.
81/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param>
84public static SignOutHttpResult SignOut(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
Microsoft.AspNetCore.Http.Results.Tests (19)
Microsoft.AspNetCore.Identity (13)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (25)
SignInManagerTest.cs (20)
285It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
329It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
383It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
537It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
538auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
539auth.Setup(a => a.SignOutAsync(context, IdentityConstants.TwoFactorUserIdScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
626signInManager.Setup(s => s.SignInWithClaimsAsync(user, It.IsAny<AuthenticationProperties>(), It.IsAny<IEnumerable<Claim>>())).Returns(Task.FromResult(0)).Verifiable();
681It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
684auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
685auth.Setup(a => a.SignOutAsync(context, IdentityConstants.TwoFactorUserIdScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
697It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
761It.Is<AuthenticationProperties>(v => v.IsPersistent == true))).Returns(Task.FromResult(0)).Verifiable();
819auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ApplicationScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
820auth.Setup(a => a.SignOutAsync(context, IdentityConstants.TwoFactorUserIdScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
821auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
983It.Is<AuthenticationProperties>(v => isPersistent == null || v.IsPersistent == isPersistent))).Returns(Task.FromResult(0)).Verifiable();
1039var properties = new AuthenticationProperties();
1070var properties = new AuthenticationProperties();
1101var properties = new AuthenticationProperties();
1118var externalProperties = externalLoginInfo.AuthenticationProperties;
Microsoft.AspNetCore.Identity.UI (4)
Microsoft.AspNetCore.Mvc.Core (46)
Microsoft.AspNetCore.Mvc.Core.Test (8)
Microsoft.AspNetCore.Mvc.RazorPages (24)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IISIntegration (2)
Microsoft.AspNetCore.Tests (2)
OpenIdConnectSample (1)
SocialSample (2)