2 types derived from AuthenticationProperties
Microsoft.AspNetCore.Authentication.Core.Test (1)
AuthenticationPropertiesTests.cs (1)
391public class MyAuthenticationProperties : AuthenticationProperties
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthChallengeProperties.cs (1)
9public class OAuthChallengeProperties : AuthenticationProperties
145 instantiations of AuthenticationProperties
Aspire.Dashboard (2)
Authentication\FrontendCompositeAuthenticationHandler.cs (1)
26new AuthenticationProperties(
Model\ValidateTokenMiddleware.cs (1)
101new AuthenticationProperties { IsPersistent = true }).ConfigureAwait(false);
BasicWebSite (1)
BasicAuthenticationHandler.cs (1)
36new AuthenticationProperties(),
Identity.DefaultUI.WebSite (1)
Pages\Contoso\Login.cshtml.cs (1)
63var properties = new AuthenticationProperties(state)
Identity.ExternalClaims (2)
Pages\Account\ExternalLogin.cshtml.cs (2)
82var props = new AuthenticationProperties(); 130var props = new AuthenticationProperties();
Keycloak.Web (2)
LoginLogoutEndpointRouteBuilderExtensions.cs (2)
13group.MapGet("/login", () => TypedResults.Challenge(new AuthenticationProperties { RedirectUri = "/" })) 16group.MapPost("/logout", () => TypedResults.SignOut(new AuthenticationProperties { RedirectUri = "/" },
Microsoft.AspNetCore.Authentication (8)
AuthenticationHandler.cs (2)
315properties ??= new AuthenticationProperties(); 330properties ??= new AuthenticationProperties();
Events\PropertiesContext.cs (1)
23Properties = properties ?? new AuthenticationProperties();
Events\RemoteAuthenticationContext.cs (1)
27=> Properties = properties ?? new AuthenticationProperties();
Events\ResultContext.cs (1)
37_properties ??= new AuthenticationProperties();
PropertiesSerializer.cs (1)
79return new AuthenticationProperties(extra);
SignInAuthenticationHandler.cs (1)
43: HandleSignInAsync(user, properties ?? new AuthenticationProperties());
SignOutAuthenticationHandler.cs (1)
42: HandleSignOutAsync(properties ?? new AuthenticationProperties());
Microsoft.AspNetCore.Authentication.Abstractions (2)
AuthenticationProperties.cs (1)
53=> new AuthenticationProperties(
AuthenticationTicket.cs (1)
25Properties = properties ?? new AuthenticationProperties();
Microsoft.AspNetCore.Authentication.BearerToken (2)
BearerTokenHandler.cs (2)
68properties ??= new(); 108var refreshProperties = new AuthenticationProperties
Microsoft.AspNetCore.Authentication.Cookies (3)
CookieAuthenticationHandler.cs (3)
141var newProperties = new AuthenticationProperties(); 295properties = properties ?? new AuthenticationProperties(); 383properties = properties ?? new AuthenticationProperties();
Microsoft.AspNetCore.Authentication.Core.Test (23)
AuthenticationPropertiesTests.cs (15)
23var props = new AuthenticationProperties(items, parameters); 41var props = new AuthenticationProperties(); 53var props = new AuthenticationProperties(items); 70var props = new AuthenticationProperties(items, parameters); 78var props = new AuthenticationProperties(); 113var props = new AuthenticationProperties(); 131var props = new AuthenticationProperties(); 149var props = new AuthenticationProperties(); 168var props = new AuthenticationProperties(); 182var props = new AuthenticationProperties(); 196var props = new AuthenticationProperties(); 210var props = new AuthenticationProperties(); 224var props = new AuthenticationProperties(); 308var props = new AuthenticationProperties() 364var props = new AuthenticationProperties()
AuthenticationServiceTests.cs (1)
260new AuthenticationProperties(),
AuthenticationTicketTests.cs (1)
22var props = new AuthenticationProperties(items, parameters);
TokenExtensionTests.cs (6)
15var props = new AuthenticationProperties(); 34var props = new AuthenticationProperties(); 57var props = new AuthenticationProperties(); 81var props = new AuthenticationProperties(); 104var props = new AuthenticationProperties(); 156var props = new AuthenticationProperties();
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Events\AuthenticationFailedContext.cs (1)
19: base(context, scheme, options, new AuthenticationProperties())
Events\RemoteSignoutContext.cs (1)
19: base(context, scheme, options, new AuthenticationProperties())
OpenIdConnectHandler.cs (1)
217properties ??= new AuthenticationProperties();
Microsoft.AspNetCore.Authentication.Test (61)
CookieTests.cs (12)
111new AuthenticationProperties()); 118new AuthenticationProperties()); 265new AuthenticationProperties()); 478new AuthenticationProperties() { ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5)) })); 1243app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1477map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1509new AuthenticationProperties { RedirectUri = redirectUrl }) 1600new AuthenticationProperties { RedirectUri = "/redirect_test" }); 1647new AuthenticationProperties())); 1842await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties()); 1846await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties() { RedirectUri = "/CustomRedirect" }); 1850await DescribeAsync(res, AuthenticateResult.Success(new AuthenticationTicket(context.User, new AuthenticationProperties(), CookieAuthenticationDefaults.AuthenticationScheme)));
DynamicSchemeTests.cs (1)
125return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
FacebookTests.cs (4)
195var properties = new AuthenticationProperties(); 215map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" }))); 248app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" }))); 356var properties = new AuthenticationProperties();
GoogleTests.cs (12)
224return context.ChallengeAsync("Google", new AuthenticationProperties(new Dictionary<string, string>() 548var properties = new AuthenticationProperties(); 614var properties = new AuthenticationProperties(); 667var properties = new AuthenticationProperties(); 711var properties = new AuthenticationProperties(); 752var properties = new AuthenticationProperties(); 796var properties = new AuthenticationProperties(); 872var properties = new AuthenticationProperties(); 916var properties = new AuthenticationProperties(); 960var properties = new AuthenticationProperties(); 997var properties = new AuthenticationProperties(); 1261var properties = new AuthenticationProperties(new Dictionary<string, string>()
MicrosoftAccountTests.cs (2)
233var properties = new AuthenticationProperties(); 388var properties = new AuthenticationProperties();
OAuthTests.cs (2)
266var properties = new AuthenticationProperties(); 558var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (1)
120var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectChallengeTests.cs (4)
190var properties = new AuthenticationProperties(); 570var properties = new AuthenticationProperties(); 618var properties = new AuthenticationProperties(); 664var properties = new AuthenticationProperties();
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1334var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1332var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\TestServerBuilder.cs (1)
99new AuthenticationProperties() { RedirectUri = "http://www.example.com/specific_redirect_uri" });
PolicyTests.cs (2)
377return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name))); 427return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
TestHandlers.cs (2)
42return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name))); 74return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, new AuthenticationProperties(), Scheme.Name)));
TicketSerializerTests.cs (4)
15var properties = new AuthenticationProperties(); 36var properties = new AuthenticationProperties(); 58var properties = new AuthenticationProperties(); 87var properties = new AuthenticationProperties();
TokenExtensionTests.cs (5)
11var props = new AuthenticationProperties(); 30var props = new AuthenticationProperties(); 53var props = new AuthenticationProperties(); 77var props = new AuthenticationProperties(); 100var props = new AuthenticationProperties();
TwitterTests.cs (5)
202var properties = new AuthenticationProperties(); 252var properties = new AuthenticationProperties(); 358var properties = new AuthenticationProperties(); 419Properties = new() 498Properties = new()
WsFederation\WsFederationTest.cs (1)
384var authProperties = new AuthenticationProperties() { RedirectUri = context.Request.GetEncodedUrl() };
WsFederation\WsFederationTest_Handler.cs (1)
380var authProperties = new AuthenticationProperties() { RedirectUri = context.Request.GetEncodedUrl() };
Microsoft.AspNetCore.Authentication.WsFederation (2)
AuthenticationFailedContext.cs (1)
21: base(context, scheme, options, new AuthenticationProperties())
RemoteSignoutContext.cs (1)
22: base(context, scheme, options, new AuthenticationProperties())
Microsoft.AspNetCore.Http.Results.Tests (9)
ForbidResultTests.cs (2)
38var authProperties = new AuthenticationProperties(); 63new AuthenticationProperties()
ResultsTests.cs (3)
469new object[] { new AuthenticationProperties(), new List<string> { "TestScheme" } }, 470new object[] { new AuthenticationProperties(), default(IList<string>) }, 1775(() => Results.SignOut(new(), null), typeof(SignOutHttpResult)),
SignInResultTests.cs (1)
61var authProperties = new AuthenticationProperties();
SignOutResultTests.cs (1)
56var authProperties = new AuthenticationProperties();
TypedResultsTests.cs (2)
479new object[] { new AuthenticationProperties(), new List<string> { "TestScheme" } }, 480new object[] { new AuthenticationProperties(), default(IList<string>) },
Microsoft.AspNetCore.Identity (5)
SignInManager.cs (5)
195=> SignInAsync(user, new AuthenticationProperties { IsPersistent = isPersistent }, authenticationMethod); 224=> SignInWithClaimsAsync(user, new AuthenticationProperties { IsPersistent = isPersistent }, additionalClaims); 242authenticationProperties ?? new AuthenticationProperties()); 454new AuthenticationProperties { IsPersistent = true }); 759var properties = new AuthenticationProperties { RedirectUri = redirectUrl };
Microsoft.AspNetCore.Identity.Test (11)
SecurityStampValidatorTest.cs (8)
63var ticket = new AuthenticationTicket(id, new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow }, IdentityConstants.ApplicationScheme); 81var properties = new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow.AddSeconds(-1), IsPersistent = isPersistent }; 141new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow.AddSeconds(-1) }, 182new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow.AddSeconds(-1) }, 224new AuthenticationProperties(), 261new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow }, 299new AuthenticationProperties 348new AuthenticationProperties { IsPersistent = true },
SignInManagerTest.cs (3)
1039var properties = new AuthenticationProperties(); 1070var properties = new AuthenticationProperties(); 1101var properties = new AuthenticationProperties();
Microsoft.AspNetCore.Mvc.Core.Test (5)
ForbidResultTest.cs (2)
48var authProperties = new AuthenticationProperties(); 78new AuthenticationProperties()
SignInResultTest.cs (1)
77var authProperties = new AuthenticationProperties();
SignOutResultTest.cs (2)
73var authProperties = new AuthenticationProperties(); 144var authProperties = new AuthenticationProperties();
OpenIdConnectSample (1)
Startup.cs (1)
176await context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme, new AuthenticationProperties()
SocialSample (1)
Startup.cs (1)
255await context.ChallengeAsync(authType, new AuthenticationProperties() { RedirectUri = "/" });
WsFedSample (1)
Startup.cs (1)
71await context.SignOutAsync(WsFederationDefaults.AuthenticationScheme, new AuthenticationProperties()
606 references to AuthenticationProperties
Aspire.Dashboard (1)
Authentication\FrontendCompositeAuthenticationHandler.cs (1)
35protected override async Task HandleChallengeAsync(AuthenticationProperties properties)
Identity.DefaultUI.WebSite (2)
Pages\Contoso\Login.cshtml.cs (1)
63var properties = new AuthenticationProperties(state)
Services\ContosoAuthenticationHandler.cs (1)
25protected override Task HandleChallengeAsync(AuthenticationProperties properties)
Identity.ExternalClaims (4)
Pages\Account\ExternalLogin.cshtml.cs (3)
59var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl); 82var props = new AuthenticationProperties(); 130var props = new AuthenticationProperties();
Pages\Account\Manage\ExternalLogins.cshtml.cs (1)
80var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User));
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
147var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl);
Controllers\ManageController.cs (1)
325var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User));
Microsoft.AspNetCore.Authentication (45)
AuthenticationHandler.cs (4)
286protected virtual Task HandleForbiddenAsync(AuthenticationProperties properties) 299protected virtual Task HandleChallengeAsync(AuthenticationProperties properties) 306public async Task ChallengeAsync(AuthenticationProperties? properties) 321public async Task ForbidAsync(AuthenticationProperties? properties)
Events\AccessDeniedContext.cs (1)
36public AuthenticationProperties? Properties { get; set; }
Events\PrincipalContext.cs (1)
21protected PrincipalContext(HttpContext context, AuthenticationScheme scheme, TOptions options, AuthenticationProperties? properties)
Events\PropertiesContext.cs (4)
9/// Base context for authentication events which contain <see cref="AuthenticationProperties"/>. 20protected PropertiesContext(HttpContext context, AuthenticationScheme scheme, TOptions options, AuthenticationProperties? properties) 27/// Gets or sets the <see cref="AuthenticationProperties"/>. 29public virtual AuthenticationProperties Properties { get; protected set; }
Events\RedirectContext.cs (2)
20/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 25AuthenticationProperties properties,
Events\RemoteAuthenticationContext.cs (3)
25AuthenticationProperties? properties) 35/// Gets or sets the <see cref="AuthenticationProperties"/>. 37public virtual AuthenticationProperties? Properties { get; set; }
Events\RemoteFailureContext.cs (1)
38public AuthenticationProperties? Properties { get; set; }
Events\ResultContext.cs (3)
14private AuthenticationProperties? _properties; 31/// Gets or sets the <see cref="AuthenticationProperties"/>. 33public AuthenticationProperties Properties
HandleRequestResult.cs (2)
54public static new HandleRequestResult Fail(Exception failure, AuthenticationProperties? properties) 73public static new HandleRequestResult Fail(string failureMessage, AuthenticationProperties? properties)
PolicySchemeHandler.cs (4)
37protected override Task HandleChallengeAsync(AuthenticationProperties? properties) 41protected override Task HandleForbiddenAsync(AuthenticationProperties? properties) 45protected override Task HandleSignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 49protected override Task HandleSignOutAsync(AuthenticationProperties? properties)
PropertiesDataFormat.cs (2)
10/// <see cref="AuthenticationProperties"/>. 12public class PropertiesDataFormat : SecureDataFormat<AuthenticationProperties>
PropertiesSerializer.cs (6)
7/// A <see cref="IDataSerializer{TModel}"/> for <see cref="AuthenticationProperties"/>. 9public class PropertiesSerializer : IDataSerializer<AuthenticationProperties> 19public virtual byte[] Serialize(AuthenticationProperties model) 33public virtual AuthenticationProperties? Deserialize(byte[] data) 45public virtual void Write(BinaryWriter writer, AuthenticationProperties properties) 61public virtual AuthenticationProperties? Read(BinaryReader reader)
RemoteAuthenticationHandler.cs (6)
84AuthenticationProperties? properties = null; 219protected override Task HandleForbiddenAsync(AuthenticationProperties properties) 226protected virtual void GenerateCorrelationId(AuthenticationProperties properties) 248protected virtual bool ValidateCorrelationId(AuthenticationProperties properties) 285/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 287protected virtual async Task<HandleRequestResult> HandleAccessDeniedErrorAsync(AuthenticationProperties properties)
RemoteAuthenticationOptions.cs (1)
130/// <see cref="AuthenticationProperties"/> after a successful authorization.
SignInAuthenticationHandler.cs (2)
38public virtual Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 52protected abstract Task HandleSignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties);
SignOutAuthenticationHandler.cs (2)
37public virtual Task SignOutAsync(AuthenticationProperties? properties) 49protected abstract Task HandleSignOutAsync(AuthenticationProperties? properties);
TicketSerializer.cs (1)
171var properties = PropertiesSerializer.Default.Read(reader);
Microsoft.AspNetCore.Authentication.Abstractions (62)
AuthenticateResult.cs (3)
40public AuthenticationProperties? Properties { get; protected set; } 110public static AuthenticateResult Fail(Exception failure, AuthenticationProperties? properties) 129public static AuthenticateResult Fail(string failureMessage, AuthenticationProperties? properties)
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) =>
AuthenticationOptions.cs (4)
74/// Used as the default scheme by <see cref="IAuthenticationService.SignInAsync(HttpContext, string, System.Security.Claims.ClaimsPrincipal, AuthenticationProperties)"/>. 79/// Used as the default scheme by <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>. 84/// Used as the default scheme by <see cref="IAuthenticationService.ChallengeAsync(HttpContext, string, AuthenticationProperties)"/>. 89/// Used as the default scheme by <see cref="IAuthenticationService.ForbidAsync(HttpContext, string, AuthenticationProperties)"/>.
AuthenticationProperties.cs (4)
22/// Initializes a new instance of the <see cref="AuthenticationProperties"/> class. 29/// Initializes a new instance of the <see cref="AuthenticationProperties"/> class. 38/// Initializes a new instance of the <see cref="AuthenticationProperties"/> class. 52public AuthenticationProperties Clone()
AuthenticationTicket.cs (2)
19public AuthenticationTicket(ClaimsPrincipal principal, AuthenticationProperties? properties, string authenticationScheme) 50public AuthenticationProperties Properties { get; }
IAuthenticationHandler.cs (4)
29/// <param name="properties">The <see cref="AuthenticationProperties"/> that contains the extra meta-data arriving with the authentication.</param> 30Task ChallengeAsync(AuthenticationProperties? properties); 35/// <param name="properties">The <see cref="AuthenticationProperties"/> that contains the extra meta-data arriving with the authentication.</param> 36Task ForbidAsync(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>
IAuthenticationService.cs (8)
28/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 30Task ChallengeAsync(HttpContext context, string? scheme, AuthenticationProperties? properties); 38/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 40Task ForbidAsync(HttpContext context, string? scheme, AuthenticationProperties? properties); 48/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 50Task SignInAsync(HttpContext context, string? scheme, ClaimsPrincipal principal, AuthenticationProperties? properties); 57/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 59Task SignOutAsync(HttpContext context, string? scheme, AuthenticationProperties? properties);
IAuthenticationSignInHandler.cs (2)
17/// <param name="properties">The <see cref="AuthenticationProperties"/> that contains the extra meta-data arriving with the authentication.</param> 19Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties);
IAuthenticationSignOutHandler.cs (2)
14/// <param name="properties">The <see cref="AuthenticationProperties"/> that contains the extra meta-data arriving with the authentication.</param> 16Task SignOutAsync(AuthenticationProperties? properties);
TokenExtensions.cs (9)
9/// Extension methods for storing authentication tokens in <see cref="AuthenticationProperties"/>. 19/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param> 21public static void StoreTokens(this AuthenticationProperties properties, IEnumerable<AuthenticationToken> tokens) 56/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param> 59public static string? GetTokenValue(this AuthenticationProperties properties, string tokenName) 72/// <param name="properties">The <see cref="AuthenticationProperties"/> to update.</param> 76public static bool UpdateTokenValue(this AuthenticationProperties properties, string tokenName, string tokenValue) 93/// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param> 95public static IEnumerable<AuthenticationToken> GetTokens(this AuthenticationProperties properties)
Microsoft.AspNetCore.Authentication.BearerToken (5)
BearerTokenHandler.cs (5)
58protected override Task HandleChallengeAsync(AuthenticationProperties properties) 64protected override async Task HandleSignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 92protected override Task HandleSignOutAsync(AuthenticationProperties? properties) => Task.CompletedTask; 103private AuthenticationTicket CreateBearerTicket(ClaimsPrincipal user, AuthenticationProperties properties) 108var refreshProperties = new AuthenticationProperties
Microsoft.AspNetCore.Authentication.Certificate (2)
CertificateAuthenticationHandler.cs (1)
172protected override async Task HandleChallengeAsync(AuthenticationProperties properties)
Events\CertificateChallengeContext.cs (1)
24AuthenticationProperties properties)
Microsoft.AspNetCore.Authentication.Cookies (10)
CookieAuthenticationHandler.cs (7)
141var newProperties = new AuthenticationProperties(); 250var properties = ticket.Properties; 291protected override async Task HandleSignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 381protected override async Task HandleSignOutAsync(AuthenticationProperties? properties) 416private async Task ApplyHeaders(bool shouldRedirect, bool shouldHonorReturnUrlParameter, AuthenticationProperties properties) 462protected override async Task HandleForbiddenAsync(AuthenticationProperties properties) 475protected override async Task HandleChallengeAsync(AuthenticationProperties properties)
CookieSignedInContext.cs (1)
26AuthenticationProperties? properties,
CookieSigningInContext.cs (1)
28AuthenticationProperties? properties,
CookieSigningOutContext.cs (1)
25AuthenticationProperties? properties,
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>
AuthenticationService.cs (8)
105/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 107public virtual async Task ChallengeAsync(HttpContext context, string? scheme, AuthenticationProperties? properties) 133/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 135public virtual async Task ForbidAsync(HttpContext context, string? scheme, AuthenticationProperties? properties) 162/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 164public virtual async Task SignInAsync(HttpContext context, string? scheme, ClaimsPrincipal principal, AuthenticationProperties? properties) 210/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 212public virtual async Task SignOutAsync(HttpContext context, string? scheme, AuthenticationProperties? properties)
Microsoft.AspNetCore.Authentication.Core.Test (53)
AuthenticationPropertiesTests.cs (20)
23var props = new AuthenticationProperties(items, parameters); 26var copy = props.Clone(); 41var props = new AuthenticationProperties(); 53var props = new AuthenticationProperties(items); 70var props = new AuthenticationProperties(items, parameters); 78var props = new AuthenticationProperties(); 113var props = new AuthenticationProperties(); 131var props = new AuthenticationProperties(); 149var props = new AuthenticationProperties(); 168var props = new AuthenticationProperties(); 182var props = new AuthenticationProperties(); 196var props = new AuthenticationProperties(); 210var props = new AuthenticationProperties(); 224var props = new AuthenticationProperties(); 308var props = new AuthenticationProperties() 328var deserialized = JsonSerializer.Deserialize<AuthenticationProperties>(json); 352var deserialized = JsonSerializer.Deserialize<AuthenticationProperties>(json); 364var props = new AuthenticationProperties()
AuthenticationSchemeProviderTests.cs (5)
263public Task ChallengeAsync(AuthenticationProperties? properties) 268public Task ForbidAsync(AuthenticationProperties? properties) 281public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 286public Task SignOutAsync(AuthenticationProperties? properties) 294public Task SignOutAsync(AuthenticationProperties? properties)
AuthenticationServiceTests.cs (17)
264public Task ChallengeAsync(AuthenticationProperties? properties) 269public Task ForbidAsync(AuthenticationProperties? properties) 287public Task ChallengeAsync(AuthenticationProperties? properties) 292public Task ForbidAsync(AuthenticationProperties? properties) 302public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 307public Task SignOutAsync(AuthenticationProperties? properties) 320public Task ChallengeAsync(AuthenticationProperties? properties) 325public Task ForbidAsync(AuthenticationProperties? properties) 335public Task SignOutAsync(AuthenticationProperties? properties) 348public Task ChallengeAsync(AuthenticationProperties? properties) 353public Task ForbidAsync(AuthenticationProperties? properties) 368public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 373public Task SignOutAsync(AuthenticationProperties? properties) 386public Task ChallengeAsync(AuthenticationProperties? properties) 391public Task ForbidAsync(AuthenticationProperties? properties) 406public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 411public Task SignOutAsync(AuthenticationProperties? properties)
AuthenticationTicketTests.cs (1)
22var props = new AuthenticationProperties(items, parameters);
TokenExtensionTests.cs (10)
15var props = new AuthenticationProperties(); 34var props = new AuthenticationProperties(); 57var props = new AuthenticationProperties(); 81var props = new AuthenticationProperties(); 104var props = new AuthenticationProperties(); 156var props = new AuthenticationProperties(); 168public Task ChallengeAsync(AuthenticationProperties? properties) 173public Task ForbidAsync(AuthenticationProperties? properties) 183public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 188public Task SignOutAsync(AuthenticationProperties properties)
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
40protected override async Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
Microsoft.AspNetCore.Authentication.Google (5)
GoogleChallengeProperties.cs (1)
9/// <see cref="AuthenticationProperties"/> for a Google OAuth challenge.
GoogleHandler.cs (4)
43AuthenticationProperties properties, 66protected override string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri) 89AuthenticationProperties properties, 116AuthenticationProperties properties,
Microsoft.AspNetCore.Authentication.JwtBearer (4)
JwtBearerChallengeContext.cs (1)
21AuthenticationProperties properties)
JwtBearerHandler.cs (2)
275protected override async Task HandleChallengeAsync(AuthenticationProperties properties) 349protected override Task HandleForbiddenAsync(AuthenticationProperties properties)
JwtBearerOptions.cs (1)
133/// <see cref="AuthenticationProperties"/> after a successful authorization.
Microsoft.AspNetCore.Authentication.MicrosoftAccount (5)
MicrosoftAccountHandler.cs (4)
41protected override async Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens) 62protected override string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri) 103AuthenticationProperties properties, 130AuthenticationProperties properties,
MicrosoftChallengeProperties.cs (1)
9/// <see cref="AuthenticationProperties"/> for Microsoft OAuth challenge request.
Microsoft.AspNetCore.Authentication.Negotiate (2)
Events\ChallengeContext.cs (1)
21AuthenticationProperties properties)
NegotiateHandler.cs (1)
383protected override async Task HandleChallengeAsync(AuthenticationProperties properties)
Microsoft.AspNetCore.Authentication.OAuth (14)
Events\OAuthCreatingTicketContext.cs (2)
21/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 30AuthenticationProperties properties,
Events\OAuthEvents.cs (1)
35/// <param name="context">Contains redirect URI and <see cref="AuthenticationProperties"/> of the challenge.</param>
OAuthChallengeProperties.cs (1)
7/// <see cref="AuthenticationProperties"/> for an OAuth challenge.
OAuthCodeExchangeContext.cs (3)
14/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 17public OAuthCodeExchangeContext(AuthenticationProperties properties, string code, string redirectUri) 27public AuthenticationProperties Properties { get; }
OAuthHandler.cs (6)
69var properties = Options.StateDataFormat.Unprotect(state); 249/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 252protected virtual async Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens) 263protected override async Task HandleChallengeAsync(AuthenticationProperties properties) 297/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 300protected virtual string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri)
OAuthOptions.cs (1)
99public ISecureDataFormat<AuthenticationProperties> StateDataFormat { get; set; } = default!;
Microsoft.AspNetCore.Authentication.OpenIdConnect (28)
Events\AuthorizationCodeReceivedContext.cs (1)
23AuthenticationProperties properties)
Events\MessageReceivedContext.cs (1)
22AuthenticationProperties? properties)
Events\PushedAuthorizationContext.cs (1)
19public PushedAuthorizationContext(HttpContext context, AuthenticationScheme scheme, OpenIdConnectOptions options, OpenIdConnectMessage parRequest, AuthenticationProperties properties)
Events\RedirectContext.cs (1)
24AuthenticationProperties properties)
Events\TokenResponseReceivedContext.cs (1)
18public TokenResponseReceivedContext(HttpContext context, AuthenticationScheme scheme, OpenIdConnectOptions options, ClaimsPrincipal user, AuthenticationProperties properties)
Events\TokenValidatedContext.cs (1)
20public TokenValidatedContext(HttpContext context, AuthenticationScheme scheme, OpenIdConnectOptions options, ClaimsPrincipal principal, AuthenticationProperties properties)
Events\UserInformationReceivedContext.cs (1)
20public UserInformationReceivedContext(HttpContext context, AuthenticationScheme scheme, OpenIdConnectOptions options, ClaimsPrincipal principal, AuthenticationProperties properties)
OpenIdConnectChallengeProperties.cs (1)
10/// <see cref="AuthenticationProperties"/> for an OpenId Connect challenge.
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)
OpenIdConnectOptions.cs (1)
263public ISecureDataFormat<AuthenticationProperties> StateDataFormat { get; set; } = default!;
Microsoft.AspNetCore.Authentication.Test (115)
AuthenticationMiddlewareTests.cs (12)
255public Task ChallengeAsync(AuthenticationProperties properties) 260public Task ForbidAsync(AuthenticationProperties properties) 277public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 282public Task SignOutAsync(AuthenticationProperties properties) 297public Task ChallengeAsync(AuthenticationProperties properties) 302public Task ForbidAsync(AuthenticationProperties properties) 318public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 323public Task SignOutAsync(AuthenticationProperties properties) 338public Task ChallengeAsync(AuthenticationProperties properties) 343public Task ForbidAsync(AuthenticationProperties properties) 359public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 364public Task SignOutAsync(AuthenticationProperties properties)
FacebookTests.cs (2)
195var properties = new AuthenticationProperties(); 356var properties = new AuthenticationProperties();
GoogleTests.cs (20)
199var stateProperties = stateFormat.Unprotect(query["state"]); 251var stateProperties = stateFormat.Unprotect(query["state"]); 307var stateProperties = stateFormat.Unprotect(query["state"]); 548var properties = new AuthenticationProperties(); 614var properties = new AuthenticationProperties(); 667var properties = new AuthenticationProperties(); 711var properties = new AuthenticationProperties(); 752var properties = new AuthenticationProperties(); 796var properties = new AuthenticationProperties(); 872var properties = new AuthenticationProperties(); 916var properties = new AuthenticationProperties(); 960var properties = new AuthenticationProperties(); 997var properties = new AuthenticationProperties(); 1244private class TestStateDataFormat : ISecureDataFormat<AuthenticationProperties> 1246private AuthenticationProperties Data { get; set; } 1248public string Protect(AuthenticationProperties data) 1253public string Protect(AuthenticationProperties data, string purpose) 1258public AuthenticationProperties Unprotect(string protectedText) 1261var properties = new AuthenticationProperties(new Dictionary<string, string>() 1270public AuthenticationProperties Unprotect(string protectedText, string purpose)
MicrosoftAccountTests.cs (3)
233var properties = new AuthenticationProperties(); 278var stateProperties = stateFormat.Unprotect(query["state"]); 388var properties = new AuthenticationProperties();
OAuthTests.cs (8)
266var properties = new AuthenticationProperties(); 541private class TestStateDataFormat : ISecureDataFormat<AuthenticationProperties> 543private AuthenticationProperties Data { get; set; } 545public string Protect(AuthenticationProperties data) 550public string Protect(AuthenticationProperties data, string purpose) 555public AuthenticationProperties Unprotect(string protectedText) 558var properties = new AuthenticationProperties(new Dictionary<string, string>() 567public AuthenticationProperties Unprotect(string protectedText, string purpose)
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (7)
103private class TestStateDataFormat : ISecureDataFormat<AuthenticationProperties> 105private AuthenticationProperties Data { get; set; } 107public string Protect(AuthenticationProperties data) 112public string Protect(AuthenticationProperties data, string purpose) 117public AuthenticationProperties Unprotect(string protectedText) 120var properties = new AuthenticationProperties(new Dictionary<string, string>() 129public AuthenticationProperties Unprotect(string protectedText, string purpose)
OpenIdConnect\OpenIdConnectChallengeTests.cs (6)
190var properties = new AuthenticationProperties(); 202var actualProperties = stateFormat.Unprotect(actualState); 237var actualProperties = stateFormat.Unprotect(actualState); 570var properties = new AuthenticationProperties(); 618var properties = new AuthenticationProperties(); 664var properties = new AuthenticationProperties();
OpenIdConnect\OpenIdConnectEventTests.cs (7)
1317private class TestStateDataFormat : ISecureDataFormat<AuthenticationProperties> 1319private AuthenticationProperties Data { get; set; } 1321public string Protect(AuthenticationProperties data) 1326public string Protect(AuthenticationProperties data, string purpose) 1331public AuthenticationProperties Unprotect(string protectedText) 1334var properties = new AuthenticationProperties(new Dictionary<string, string>() 1344public AuthenticationProperties Unprotect(string protectedText, string purpose)
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (7)
1315private class TestStateDataFormat : ISecureDataFormat<AuthenticationProperties> 1317private AuthenticationProperties Data { get; set; } 1319public string Protect(AuthenticationProperties data) 1324public string Protect(AuthenticationProperties data, string purpose) 1329public AuthenticationProperties Unprotect(string protectedText) 1332var properties = new AuthenticationProperties(new Dictionary<string, string>() 1342public AuthenticationProperties Unprotect(string protectedText, string purpose)
OpenIdConnect\OpenIdConnectTests.cs (2)
252var properties = stateFormat.Unprotect(state); 283var properties = stateFormat.Unprotect(state);
OpenIdConnect\TestServerBuilder.cs (1)
62AuthenticationProperties properties)
OpenIdConnect\TestSettings.cs (1)
47public TestServer CreateTestServer(AuthenticationProperties properties = null, Func<HttpContext, Task> handler = null) => TestServerBuilder.CreateServer(_configureOptions, handler: handler, properties: properties);
PolicyTests.cs (8)
380public Task ChallengeAsync(AuthenticationProperties properties) 386public Task ForbidAsync(AuthenticationProperties properties) 398public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 404public Task SignOutAsync(AuthenticationProperties properties) 430public Task ChallengeAsync(AuthenticationProperties properties) 436public Task ForbidAsync(AuthenticationProperties properties) 448public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 454public Task SignOutAsync(AuthenticationProperties properties)
TestHandlers.cs (8)
23protected override Task HandleChallengeAsync(AuthenticationProperties properties) 29protected override Task HandleForbiddenAsync(AuthenticationProperties properties) 45public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 51public Task SignOutAsync(AuthenticationProperties properties) 77public Task ChallengeAsync(AuthenticationProperties properties) 83public Task ForbidAsync(AuthenticationProperties properties) 95public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 101public Task SignOutAsync(AuthenticationProperties properties)
TicketSerializerTests.cs (4)
15var properties = new AuthenticationProperties(); 36var properties = new AuthenticationProperties(); 58var properties = new AuthenticationProperties(); 87var properties = new AuthenticationProperties();
TokenExtensionTests.cs (5)
11var props = new AuthenticationProperties(); 30var props = new AuthenticationProperties(); 53var props = new AuthenticationProperties(); 77var props = new AuthenticationProperties(); 100var props = new AuthenticationProperties();
TwitterTests.cs (3)
202var properties = new AuthenticationProperties(); 252var properties = new AuthenticationProperties(); 358var properties = new AuthenticationProperties();
WsFederation\CustomStateDataFormat.cs (9)
9public class CustomStateDataFormat : ISecureDataFormat<AuthenticationProperties> 14private readonly DataContractSerializer serializer = new DataContractSerializer(typeof(AuthenticationProperties)); 16public string Protect(AuthenticationProperties data) 22public string Protect(AuthenticationProperties data, string purpose) 27public AuthenticationProperties Unprotect(string state) 32public AuthenticationProperties Unprotect(string protectedText, string purpose) 37private string Serialize(AuthenticationProperties data) 47private AuthenticationProperties DeSerialize(string state) 53return (AuthenticationProperties)serializer.ReadObject(ms);
WsFederation\WsFederationTest.cs (1)
384var authProperties = new AuthenticationProperties() { RedirectUri = context.Request.GetEncodedUrl() };
WsFederation\WsFederationTest_Handler.cs (1)
380var authProperties = new AuthenticationProperties() { RedirectUri = context.Request.GetEncodedUrl() };
Microsoft.AspNetCore.Authentication.Twitter (10)
Messages\RequestToken.cs (1)
29public AuthenticationProperties Properties { get; set; } = default!;
Messages\RequestTokenSerializer.cs (1)
81AuthenticationProperties? properties = PropertiesSerializer.Default.Read(reader);
TwitterCreatingTicketContext.cs (2)
22/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 33AuthenticationProperties properties,
TwitterEvents.cs (1)
35/// <param name="context">Contains redirect URI and <see cref="AuthenticationProperties"/> of the challenge </param>
TwitterHandler.cs (5)
70var properties = requestToken.Properties; 145/// <param name="properties">The <see cref="AuthenticationProperties"/>.</param> 150ClaimsIdentity identity, AuthenticationProperties properties, AccessToken token, JsonElement user) 164protected override async Task HandleChallengeAsync(AuthenticationProperties properties) 269private async Task<RequestToken> ObtainRequestTokenAsync(string callBackUri, AuthenticationProperties properties)
Microsoft.AspNetCore.Authentication.WsFederation (8)
MessageReceivedContext.cs (1)
25AuthenticationProperties? properties)
RedirectContext.cs (1)
26AuthenticationProperties? properties)
SecurityTokenReceivedContext.cs (1)
17public SecurityTokenReceivedContext(HttpContext context, AuthenticationScheme scheme, WsFederationOptions options, AuthenticationProperties properties)
SecurityTokenValidatedContext.cs (1)
19public SecurityTokenValidatedContext(HttpContext context, AuthenticationScheme scheme, WsFederationOptions options, ClaimsPrincipal principal, AuthenticationProperties properties)
WsFederationHandler.cs (3)
85protected override async Task HandleChallengeAsync(AuthenticationProperties properties) 151AuthenticationProperties? properties = null; 411public virtual async Task SignOutAsync(AuthenticationProperties? properties)
WsFederationOptions.cs (1)
132public ISecureDataFormat<AuthenticationProperties> StateDataFormat { get; set; } = default!;
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)
TestObjects\TestAuthenticationService.cs (4)
33public Task ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties) 39public Task ForbidAsync(HttpContext context, string scheme, AuthenticationProperties properties) 45public Task SignInAsync(HttpContext context, string scheme, ClaimsPrincipal principal, AuthenticationProperties properties) 50public Task SignOutAsync(HttpContext context, string scheme, AuthenticationProperties properties)
Microsoft.AspNetCore.Http.Connections (1)
HttpConnectionDispatcherOptions.cs (1)
119/// Authenticated connections whose token sets the <see cref="AuthenticationProperties.ExpiresUtc"/> value will be closed
Microsoft.AspNetCore.Http.Results (48)
ChallengeHttpResult.cs (6)
39/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 41internal ChallengeHttpResult(string authenticationScheme, AuthenticationProperties? properties) 51/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 53internal ChallengeHttpResult(IList<string> authenticationSchemes, AuthenticationProperties? properties) 65/// Gets the <see cref="AuthenticationProperties"/> used to perform the sign-out operation. 67public AuthenticationProperties? Properties { get; internal init; }
ForbidHttpResult.cs (8)
38/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 40internal ForbidHttpResult(AuthenticationProperties? properties) 50/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 52internal ForbidHttpResult(string authenticationScheme, AuthenticationProperties? properties) 62/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 64internal ForbidHttpResult(IList<string> authenticationSchemes, AuthenticationProperties? properties) 76/// Gets the <see cref="AuthenticationProperties"/> used to perform the authentication challenge. 78public AuthenticationProperties? Properties { get; internal init; }
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)
SignInHttpResult.cs (4)
32/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param> 33internal SignInHttpResult(ClaimsPrincipal principal, string? authenticationScheme, AuthenticationProperties? properties) 51/// Gets or sets the <see cref="AuthenticationProperties"/> used to perform the sign-in operation. 53public AuthenticationProperties? Properties { get; internal init; }
SignOutHttpResult.cs (6)
39/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 40internal SignOutHttpResult(string authenticationScheme, AuthenticationProperties? properties) 50/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 51internal SignOutHttpResult(IList<string> authenticationSchemes, AuthenticationProperties? properties) 65/// Gets the <see cref="AuthenticationProperties"/> used to perform the sign-out operation. 67public AuthenticationProperties? Properties { get; internal init; }
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)
ForbidResultTests.cs (5)
38var authProperties = new AuthenticationProperties(); 59public static TheoryData<AuthenticationProperties> ExecuteResultAsync_InvokesForbidAsyncWithAuthPropertiesData => 60new TheoryData<AuthenticationProperties> 68public async Task ExecuteResultAsync_InvokesForbidAsyncWithAuthProperties(AuthenticationProperties expected) 89AuthenticationProperties expected)
ResultsTests.cs (6)
379public void Challenge_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 391public void Forbid_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 441public void SignOut_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 453public void SignIn_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 471new object[] { default(AuthenticationProperties), new List<string> { "TestScheme" } }, 472new object[] { default(AuthenticationProperties), default(IList<string>) },
SignInResultTests.cs (1)
61var authProperties = new AuthenticationProperties();
SignOutResultTests.cs (1)
56var authProperties = new AuthenticationProperties();
TypedResultsTests.cs (6)
427public void Challenge_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 439public void Forbid_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 451public void SignOut_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 463public void SignIn_ResultHasCorrectValues(AuthenticationProperties properties, IList<string> authenticationSchemes) 481new object[] { default(AuthenticationProperties), new List<string> { "TestScheme" } }, 482new object[] { default(AuthenticationProperties), default(IList<string>) },
Microsoft.AspNetCore.Identity (13)
ExternalLoginInfo.cs (2)
39/// The <see cref="Authentication.AuthenticationProperties"/> associated with this login. 41public AuthenticationProperties? AuthenticationProperties { get; set; }
IdentityServiceCollectionExtensions.cs (2)
206protected override Task HandleSignInAsync(ClaimsPrincipal user, AuthenticationProperties? properties) 211protected override Task HandleSignOutAsync(AuthenticationProperties? properties)
ISecurityStampValidator.cs (1)
20/// and <see cref="AuthenticationProperties"/> to validate.</param>
SecurityStampValidator.cs (3)
134/// and <see cref="AuthenticationProperties"/> to validate.</param> 176/// and <see cref="AuthenticationProperties"/> to validate.</param> 187/// and <see cref="AuthenticationProperties"/> to validate.</param>
SignInManager.cs (5)
205public virtual Task SignInAsync(TUser user, AuthenticationProperties authenticationProperties, string? authenticationMethod = null) 233public virtual async Task SignInWithClaimsAsync(TUser user, AuthenticationProperties? authenticationProperties, IEnumerable<Claim> additionalClaims) 756/// <returns>A configured <see cref="AuthenticationProperties"/>.</returns> 757public virtual AuthenticationProperties ConfigureExternalAuthenticationProperties(string? provider, [StringSyntax(StringSyntaxAttribute.Uri)] string? redirectUrl, string? userId = null) 759var properties = new AuthenticationProperties { RedirectUri = redirectUrl };
Microsoft.AspNetCore.Identity.InMemory.Test (1)
ControllerTest.cs (1)
26It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
Microsoft.AspNetCore.Identity.Test (25)
SecurityStampValidatorTest.cs (5)
26public Task ChallengeAsync(AuthenticationProperties properties) 31public Task ForbidAsync(AuthenticationProperties properties) 46public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) 51public Task SignOutAsync(AuthenticationProperties properties) 81var properties = new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow.AddSeconds(-1), IsPersistent = isPersistent };
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)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
121var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (1)
134var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User));
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
121var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (1)
134var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User));
Microsoft.AspNetCore.Mvc.Core (46)
ChallengeResult.cs (8)
48/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 50public ChallengeResult(AuthenticationProperties? properties) 60/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 62public ChallengeResult(string authenticationScheme, AuthenticationProperties? properties) 72/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 74public ChallengeResult(IList<string> authenticationSchemes, AuthenticationProperties? properties) 86/// Gets or sets the <see cref="AuthenticationProperties"/> used to perform the authentication challenge. 88public AuthenticationProperties? Properties { get; set; }
ControllerBase.cs (16)
2346/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 2355public virtual ChallengeResult Challenge(AuthenticationProperties properties) 2362/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 2373AuthenticationProperties properties, 2407/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 2415public virtual ForbidResult Forbid(AuthenticationProperties properties) 2422/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 2431public virtual ForbidResult Forbid(AuthenticationProperties properties, params string[] authenticationSchemes) 2457/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param> 2462AuthenticationProperties properties) 2470/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param> 2476AuthenticationProperties properties, 2491/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 2494public virtual SignOutResult SignOut(AuthenticationProperties properties) 2510/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 2514public virtual SignOutResult SignOut(AuthenticationProperties properties, params string[] authenticationSchemes)
ForbidResult.cs (8)
48/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 50public ForbidResult(AuthenticationProperties? properties) 60/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 62public ForbidResult(string authenticationScheme, AuthenticationProperties? properties) 72/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 74public ForbidResult(IList<string> authenticationSchemes, AuthenticationProperties? properties) 86/// Gets or sets the <see cref="AuthenticationProperties"/> used to perform the authentication challenge. 88public AuthenticationProperties? Properties { get; set; }
SignInResult.cs (6)
42/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param> 43public SignInResult(ClaimsPrincipal principal, AuthenticationProperties? properties) 54/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param> 55public SignInResult(string? authenticationScheme, ClaimsPrincipal principal, AuthenticationProperties? properties) 73/// Gets or sets the <see cref="AuthenticationProperties"/> used to perform the sign-in operation. 75public AuthenticationProperties? Properties { get; set; }
SignOutResult.cs (8)
30/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 31public SignOutResult(AuthenticationProperties properties) 61/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 62public SignOutResult(string authenticationScheme, AuthenticationProperties? properties) 72/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 73public SignOutResult(IList<string> authenticationSchemes, AuthenticationProperties? properties) 85/// Gets or sets the <see cref="AuthenticationProperties"/> used to perform the sign-out operation. 87public AuthenticationProperties? Properties { get; set; }
Microsoft.AspNetCore.Mvc.Core.Test (8)
ForbidResultTest.cs (5)
48var authProperties = new AuthenticationProperties(); 74public static TheoryData<AuthenticationProperties> ExecuteResultAsync_InvokesForbidAsyncWithAuthPropertiesData => 75new TheoryData<AuthenticationProperties> 83public async Task ExecuteResultAsync_InvokesForbidAsyncWithAuthProperties(AuthenticationProperties expected) 111AuthenticationProperties expected)
SignInResultTest.cs (1)
77var authProperties = new AuthenticationProperties();
SignOutResultTest.cs (2)
73var authProperties = new AuthenticationProperties(); 144var authProperties = new AuthenticationProperties();
Microsoft.AspNetCore.Mvc.RazorPages (24)
PageBase.cs (12)
178/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 186public virtual ChallengeResult Challenge(AuthenticationProperties properties) 193/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 203AuthenticationProperties properties, 289/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 296public virtual ForbidResult Forbid(AuthenticationProperties properties) 303/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 311public virtual ForbidResult Forbid(AuthenticationProperties properties, params string[] authenticationSchemes) 1114/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param> 1119AuthenticationProperties properties, 1135/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 1138public virtual SignOutResult SignOut(AuthenticationProperties properties, params string[] authenticationSchemes)
PageModel.cs (12)
510/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 518public virtual ChallengeResult Challenge(AuthenticationProperties properties) 525/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 535AuthenticationProperties properties, 621/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 628public virtual ForbidResult Forbid(AuthenticationProperties properties) 635/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the authentication 643public virtual ForbidResult Forbid(AuthenticationProperties properties, params string[] authenticationSchemes) 1466/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-in operation.</param> 1471AuthenticationProperties properties, 1487/// <param name="properties"><see cref="AuthenticationProperties"/> used to perform the sign-out operation.</param> 1490public virtual SignOutResult SignOut(AuthenticationProperties properties, params string[] authenticationSchemes)
Microsoft.AspNetCore.Server.HttpSys (2)
AuthenticationHandler.cs (2)
24public Task ChallengeAsync(AuthenticationProperties? properties) 30public Task ForbidAsync(AuthenticationProperties? properties)
Microsoft.AspNetCore.Server.IIS (2)
Core\IISServerAuthenticationHandlerInternal.cs (2)
39public Task ChallengeAsync(AuthenticationProperties? properties) 49public Task ForbidAsync(AuthenticationProperties? properties)
Microsoft.AspNetCore.Server.IISIntegration (2)
AuthenticationHandler.cs (2)
31public Task ChallengeAsync(AuthenticationProperties? properties) 40public Task ForbidAsync(AuthenticationProperties? properties)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2853protected override Task HandleChallengeAsync(AuthenticationProperties properties) => Task.CompletedTask; 2855protected override Task HandleForbiddenAsync(AuthenticationProperties properties) => Task.CompletedTask;
OpenIdConnectSample (1)
Startup.cs (1)
211var props = userResult.Properties;
SocialSample (2)
Startup.cs (2)
285var authProperties = userResult.Properties; 490private async Task PrintRefreshedTokensAsync(HttpResponse response, JsonDocument payload, AuthenticationProperties authProperties)