55 references to ApplicationScheme
IdentitySample.Mvc (1)
Startup.cs (1)
45o.DefaultScheme = IdentityConstants.ApplicationScheme;
Microsoft.AspNetCore.Identity (11)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
97signInManager.AuthenticationScheme = useCookieScheme ? IdentityConstants.ApplicationScheme : IdentityConstants.BearerScheme;
IdentityConstants.cs (1)
24/// The scheme used to identify combination of <see cref="BearerScheme"/> and <see cref="ApplicationScheme"/>.
IdentityCookiesBuilderExtensions.cs (2)
49builder.AddCookie(IdentityConstants.ApplicationScheme, o => 57return new OptionsBuilder<CookieAuthenticationOptions>(builder.Services, IdentityConstants.ApplicationScheme);
IdentityServiceCollectionExtensions.cs (5)
55options.DefaultAuthenticateScheme = IdentityConstants.ApplicationScheme; 56options.DefaultChallengeScheme = IdentityConstants.ApplicationScheme; 59.AddCookie(IdentityConstants.ApplicationScheme, o => 161=> services.Configure(IdentityConstants.ApplicationScheme, configure); 203return await Context.AuthenticateAsync(IdentityConstants.ApplicationScheme);
SignInManager.cs (2)
85/// The authentication scheme to sign in with. Defaults to <see cref="IdentityConstants.ApplicationScheme"/>. 87public string AuthenticationScheme { get; set; } = IdentityConstants.ApplicationScheme;
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
SqlStoreTestBase.cs (1)
45services.AddAuthentication(IdentityConstants.ApplicationScheme).AddIdentityCookies();
Microsoft.AspNetCore.Identity.FunctionalTests (5)
ManagementTests.cs (4)
117services.SetupGetUserClaimsPrincipal(user => principals.Add(user), IdentityConstants.ApplicationScheme); 154.SetupGetUserClaimsPrincipal(user => principals.Add(user), IdentityConstants.ApplicationScheme); 194.SetupGetUserClaimsPrincipal(user => principals.Add(user), IdentityConstants.ApplicationScheme); 244.SetupGetUserClaimsPrincipal(user => principals.Add(user), IdentityConstants.ApplicationScheme);
RegistrationTests.cs (1)
231authenticationMethod = user.FindFirstValue(ClaimTypes.AuthenticationMethod), IdentityConstants.ApplicationScheme);
Microsoft.AspNetCore.Identity.InMemory.Test (2)
ControllerTest.cs (1)
24auth.Setup(a => a.SignInAsync(context, IdentityConstants.ApplicationScheme,
FunctionalTest.cs (1)
385services.AddAuthentication(IdentityConstants.ApplicationScheme).AddIdentityCookies();
Microsoft.AspNetCore.Identity.Test (33)
IdentityOptionsTest.cs (1)
87Assert.Equal("a", options.Get(IdentityConstants.ApplicationScheme).Cookie.Name);
SecurityStampValidatorTest.cs (23)
62var id = new ClaimsPrincipal(new ClaimsIdentity(IdentityConstants.ApplicationScheme)); 63var ticket = new AuthenticationTicket(id, new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow }, IdentityConstants.ApplicationScheme); 64var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket); 78var id = new ClaimsIdentity(IdentityConstants.ApplicationScheme); 84IdentityConstants.ApplicationScheme); 86var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket); 111var id = new ClaimsIdentity(IdentityConstants.ApplicationScheme); 138var id = new ClaimsIdentity(IdentityConstants.ApplicationScheme); 142IdentityConstants.ApplicationScheme); 144var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket); 179var tid = new ClaimsIdentity(IdentityConstants.ApplicationScheme); 183IdentityConstants.ApplicationScheme); 185var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket); 220var id = new ClaimsIdentity(IdentityConstants.ApplicationScheme); 225IdentityConstants.ApplicationScheme); 226var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket); 257var id = new ClaimsIdentity(IdentityConstants.ApplicationScheme); 262IdentityConstants.ApplicationScheme); 263var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket); 295var id = new ClaimsIdentity(IdentityConstants.ApplicationScheme); 304IdentityConstants.ApplicationScheme); 305var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), 350var context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
SignInManagerTest.cs (8)
534IdentityConstants.ApplicationScheme, 616auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.ApplicationScheme)) 677IdentityConstants.ApplicationScheme, 819auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ApplicationScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 978IdentityConstants.ApplicationScheme, 1350private static AuthenticationScheme CreateCookieScheme(string name) => new(IdentityConstants.ApplicationScheme, displayName: null, typeof(CookieAuthenticationHandler)); 1354[IdentityConstants.ApplicationScheme] = CreateCookieScheme(IdentityConstants.ApplicationScheme),
UserClaimsPrincipalFactoryTest.cs (1)
93Assert.Equal(IdentityConstants.ApplicationScheme, identity.AuthenticationType);
Microsoft.AspNetCore.Identity.UI (2)
IdentityDefaultUIConfigureOptions.cs (1)
53if (string.Equals(IdentityConstants.ApplicationScheme, name, StringComparison.Ordinal))
IdentityServiceCollectionUIExtensions.cs (1)
43o.DefaultScheme = IdentityConstants.ApplicationScheme;