137 references to AuthenticationProperties
Aspire.Dashboard (1)
Model\ValidateTokenMiddleware.cs (1)
101new AuthenticationProperties { IsPersistent = true }).ConfigureAwait(false);
BasicWebSite (1)
BasicAuthenticationHandler.cs (1)
36new AuthenticationProperties(),
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 (7)
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();
SignInAuthenticationHandler.cs (1)
43: HandleSignInAsync(user, properties ?? new AuthenticationProperties());
SignOutAuthenticationHandler.cs (1)
42: HandleSignOutAsync(properties ?? new AuthenticationProperties());
Microsoft.AspNetCore.Authentication.Abstractions (1)
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 (21)
AuthenticationPropertiesTests.cs (12)
41var props = new AuthenticationProperties(); 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(),
TokenExtensionTests.cs (8)
15var props = new AuthenticationProperties(); 34var props = new AuthenticationProperties(); 57var props = new AuthenticationProperties(); 81var props = new AuthenticationProperties(); 104var props = new AuthenticationProperties(); 155var sourceProperties = new AuthenticationProperties(); 156var targetProperties = new AuthenticationProperties(); 172var 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 (55)
CookieTests.cs (12)
118new AuthenticationProperties()); 125new AuthenticationProperties()); 272new AuthenticationProperties()); 485new AuthenticationProperties() { ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5)) })); 1250app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1484map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1516new AuthenticationProperties { RedirectUri = redirectUrl }) 1607new AuthenticationProperties { RedirectUri = "/redirect_test" }); 1654new AuthenticationProperties())); 1849await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties()); 1853await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties() { RedirectUri = "/CustomRedirect" }); 1857await 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)
202var properties = new AuthenticationProperties(); 222map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" }))); 255app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" }))); 363var properties = new AuthenticationProperties();
GoogleTests.cs (10)
555var properties = new AuthenticationProperties(); 621var properties = new AuthenticationProperties(); 674var properties = new AuthenticationProperties(); 718var properties = new AuthenticationProperties(); 759var properties = new AuthenticationProperties(); 803var properties = new AuthenticationProperties(); 879var properties = new AuthenticationProperties(); 923var properties = new AuthenticationProperties(); 967var properties = new AuthenticationProperties(); 1004var properties = new AuthenticationProperties();
MicrosoftAccountTests.cs (2)
240var properties = new AuthenticationProperties(); 395var properties = new AuthenticationProperties();
OAuthTests.cs (1)
273var properties = new AuthenticationProperties();
OpenIdConnect\OpenIdConnectChallengeTests.cs (4)
190var properties = new AuthenticationProperties(); 570var properties = new AuthenticationProperties(); 618var properties = new AuthenticationProperties(); 664var properties = new AuthenticationProperties();
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)
209var properties = new AuthenticationProperties(); 259var properties = new AuthenticationProperties(); 365var properties = new AuthenticationProperties(); 426Properties = new() 505Properties = new()
WsFederation\WsFederationTest.cs (1)
391var 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 (7)
SignInManager.cs (7)
260=> SignInAsync(user, new AuthenticationProperties { IsPersistent = isPersistent }, authenticationMethod); 289=> SignInWithClaimsAsync(user, new AuthenticationProperties { IsPersistent = isPersistent }, additionalClaims); 308authenticationProperties ??= new AuthenticationProperties(); 671var props = new AuthenticationProperties(); 765var props = new AuthenticationProperties(); 934new AuthenticationProperties { IsPersistent = true }); 1321var properties = new AuthenticationProperties { RedirectUri = redirectUrl };
Microsoft.AspNetCore.Identity.Test (13)
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 (5)
781var properties = new AuthenticationProperties { IsPersistent = isPersistent }; 870var authResult = AuthenticateResult.Success(new AuthenticationTicket(claimsPrincipal, new AuthenticationProperties(), "authscheme")); 1377var properties = new AuthenticationProperties(); 1408var properties = new AuthenticationProperties(); 1439var 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()