1 type derived from AuthenticationProperties
Microsoft.AspNetCore.Authentication.OAuth (1)
30 instantiations of AuthenticationProperties
Aspire.Dashboard (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.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Identity (6)
366 references to AuthenticationProperties
Aspire.Dashboard (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 (20)
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.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)
213public virtual async Task SignOutAsync(AuthenticationProperties? properties)
324AuthenticationProperties? properties = null;
367protected override async Task HandleChallengeAsync(AuthenticationProperties properties)
385private async Task HandleChallengeAsyncInternal(AuthenticationProperties properties)
557private async Task PushAuthorizationRequest(OpenIdConnectMessage authorizeRequest, AuthenticationProperties properties, string parEndpoint)
685AuthenticationProperties? properties = null;
954private AuthenticationProperties? ReadPropertiesAndClearState(OpenIdConnectMessage message)
956AuthenticationProperties? properties = null;
971private void PopulateSessionProperties(OpenIdConnectMessage message, AuthenticationProperties properties)
1044ClaimsPrincipal principal, AuthenticationProperties properties)
1114/// <param name="properties">The <see cref="AuthenticationProperties"/> in which tokens are saved.</param>
1116private void SaveTokens(AuthenticationProperties properties, OpenIdConnectMessage message)
1211private async Task<MessageReceivedContext> RunMessageReceivedEventAsync(OpenIdConnectMessage message, AuthenticationProperties? properties)
1235private async Task<TokenValidatedContext> RunTokenValidatedEventAsync(OpenIdConnectMessage authorizationResponse, OpenIdConnectMessage? tokenEndpointResponse, ClaimsPrincipal user, AuthenticationProperties properties, JwtSecurityToken jwt, string? nonce)
1261private async Task<AuthorizationCodeReceivedContext> RunAuthorizationCodeReceivedEventAsync(OpenIdConnectMessage authorizationResponse, ClaimsPrincipal? user, AuthenticationProperties properties, JwtSecurityToken? jwt)
1311AuthenticationProperties properties)
1336private async Task<UserInformationReceivedContext> RunUserInformationReceivedEventAsync(ClaimsPrincipal principal, AuthenticationProperties properties, OpenIdConnectMessage message, JsonDocument user)
1387private ClaimsPrincipal ValidateToken(string idToken, AuthenticationProperties properties, TokenValidationParameters validationParameters, out JwtSecurityToken jwt)
1444private async Task<TokenValidationResult> ValidateTokenUsingHandlerAsync(string idToken, AuthenticationProperties properties, TokenValidationParameters validationParameters)
Microsoft.AspNetCore.Authentication.Twitter (10)
Microsoft.AspNetCore.Authentication.WsFederation (8)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Results (48)
Results.cs (12)
28/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
35/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
40AuthenticationProperties? properties = null,
45/// Creates a <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ForbidAsync(HttpContext, string?, AuthenticationProperties?)"/>.
51/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
59public static IResult Forbid(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
63/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignInAsync(HttpContext, string?, ClaimsPrincipal, AuthenticationProperties?)" />.
66/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param>
71AuthenticationProperties? properties = null,
76/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignOutAsync(HttpContext, string?, AuthenticationProperties?)" />.
78/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param>
81public static IResult SignOut(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
TypedResults.cs (12)
28/// Creates a <see cref="ChallengeHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
35/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
40AuthenticationProperties? properties = null,
45/// Creates a <see cref="ForbidHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ForbidAsync(HttpContext, string?, AuthenticationProperties?)"/>.
55/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication
59public static ForbidHttpResult Forbid(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
63/// Creates a <see cref="SignInHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignInAsync(HttpContext, string?, ClaimsPrincipal, AuthenticationProperties?)" />.
66/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param>
71AuthenticationProperties? properties = null,
80/// Creates a <see cref="SignOutHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.SignOutAsync(HttpContext, string?, AuthenticationProperties?)" />.
82/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param>
85public static SignOutHttpResult SignOut(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
Microsoft.AspNetCore.Identity (14)
Microsoft.AspNetCore.Identity.UI (4)
Microsoft.AspNetCore.Mvc.Core (46)
Microsoft.AspNetCore.Mvc.RazorPages (24)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IISIntegration (2)