96 references to AddScheme
Microsoft.AspNetCore.Authentication.Core.Test (37)
AuthenticationSchemeProviderTests.cs (18)
20o.AddScheme<SignInHandler>("B", "whatever"); 32o.AddScheme<SignInHandler>("A", "whatever"); 33o.AddScheme<SignInHandler>("B", "whatever"); 45o.AddScheme<SignInHandler>("B", "whatever"); 62o.AddScheme<SignInHandler>("A", "whatever"); 63o.AddScheme<SignInHandler>("B", "whatever"); 79o.AddScheme<SignInHandler>("signin", "whatever"); 80o.AddScheme<Handler>("foobly", "whatever"); 95o.AddScheme<Handler>("challenge", "whatever"); 96o.AddScheme<Handler>("foobly", "whatever"); 111o.AddScheme<SignInHandler>("A", "whatever"); 112o.AddScheme<SignInHandler>("B", "whatever"); 113o.AddScheme<SignInHandler>("C", "whatever"); 114o.AddScheme<SignInHandler>("Def", "whatever"); 136o.AddScheme<Handler>("signin", "whatever"); 149o.AddScheme<Handler>("signin", "whatever"); 150o.AddScheme<Handler>("signin", "whatever"); 180.AddAuthenticationCore(o => o.AddScheme<Handler>("signin", "whatever"))
AuthenticationServiceTests.cs (19)
17o.AddScheme<BaseHandler>("base", "whatever"); 33o.AddScheme<BaseHandler>("base", "whatever"); 56o.AddScheme<BaseHandler>("base", "whatever"); 71o.AddScheme<BaseHandler>("base", "whatever"); 86o.AddScheme<SignInHandler>("signin", "whatever"); 100o.AddScheme<SignInHandler>("signin", "whatever"); 115o.AddScheme<UberHandler>("uber", "whatever"); 116o.AddScheme<BaseHandler>("base", "whatever"); 117o.AddScheme<SignInHandler>("signin", "whatever"); 118o.AddScheme<SignOutHandler>("signout", "whatever"); 138o.AddScheme<UberHandler>("uber", "whatever"); 139o.AddScheme<BaseHandler>("base", "whatever"); 140o.AddScheme<SignInHandler>("signin", "whatever"); 141o.AddScheme<SignOutHandler>("signout", "whatever"); 159o.AddScheme<BaseHandler>("base", "whatever"); 179o.AddScheme<UberHandler>("base", "whatever"); 197o.AddScheme<SignInHandler>("base", "whatever"); 215o.AddScheme<SignOutHandler>("base", "whatever"); 234o.AddScheme<ForbidHandler>("forbid", "whatever");
Microsoft.AspNetCore.Authentication.Test (59)
JwtBearerTests_Handler.cs (1)
1014o.AddScheme<TestHandler>("Bearer", "Bearer");
OpenIdConnect\OpenIdConnectConfigurationTests.cs (20)
35o.AddScheme<TestHandler>("auth1", "auth1"); 78o.AddScheme<TestHandler2>("auth1", "auth1"); 79o.AddScheme<TestHandler>("specific", "specific"); 107o.AddScheme<TestHandler2>("auth1", "auth1"); 108o.AddScheme<TestHandler>("specific", "specific"); 147o.AddScheme<TestHandler2>("auth1", "auth1"); 148o.AddScheme<TestHandler>("specific", "specific"); 187o.AddScheme<TestHandler2>("auth1", "auth1"); 188o.AddScheme<TestHandler>("specific", "specific"); 227o.AddScheme<TestHandler>("specific", "specific"); 228o.AddScheme<TestHandler2>("auth1", "auth1"); 267o.AddScheme<TestHandler2>("auth1", "auth1"); 268o.AddScheme<TestHandler3>("selector", "selector"); 269o.AddScheme<TestHandler>("specific", "specific"); 322o.AddScheme<TestHandler2>("auth1", "auth1"); 323o.AddScheme<TestHandler3>("selector", "selector"); 324o.AddScheme<TestHandler>("specific", "specific"); 377o.AddScheme<TestHandler2>("auth1", "auth1"); 378o.AddScheme<TestHandler3>("selector", "selector"); 379o.AddScheme<TestHandler>("specific", "specific");
PolicyTests.cs (16)
24o.AddScheme<TestHandler>("auth1", "auth1"); 25o.AddScheme<TestHandler>("auth2", "auth2"); 26o.AddScheme<TestHandler>("auth3", "auth3"); 60o.AddScheme<TestHandler>("auth1", "auth1"); 61o.AddScheme<TestHandler2>("auth2", "auth2"); 116o.AddScheme<TestHandler>("auth1", "auth1"); 117o.AddScheme<TestHandler2>("auth2", "auth2"); 172o.AddScheme<TestHandler>("auth1", "auth1"); 173o.AddScheme<TestHandler2>("auth2", "auth2"); 233o.AddScheme<TestHandler>("auth1", "auth1"); 234o.AddScheme<TestHandler2>("auth2", "auth2"); 285o.AddScheme<TestHandler>("auth1", "auth1"); 286o.AddScheme<TestHandler2>("auth2", "auth2"); 343o.AddScheme<TestHandler>("auth1", "auth1"); 344o.AddScheme<TestHandler>("auth2", "auth2"); 345o.AddScheme<TestHandler>("auth3", "auth3");
SharedAuthenticationTests.cs (22)
34o.AddScheme<TestHandler>("auth1", "auth1"); 91o.AddScheme<TestHandler2>("auth1", "auth1"); 92o.AddScheme<TestHandler>("specific", "specific"); 133o.AddScheme<TestHandler2>("auth1", "auth1"); 134o.AddScheme<TestHandler>("specific", "specific"); 173o.AddScheme<TestHandler2>("auth1", "auth1"); 174o.AddScheme<TestHandler>("specific", "specific"); 223o.AddScheme<TestHandler2>("auth1", "auth1"); 224o.AddScheme<TestHandler>("specific", "specific"); 252o.AddScheme<TestHandler2>("auth1", "auth1"); 253o.AddScheme<TestHandler>("specific", "specific"); 291o.AddScheme<TestHandler2>("auth1", "auth1"); 292o.AddScheme<TestHandler>("specific", "specific"); 330o.AddScheme<TestHandler2>("auth1", "auth1"); 331o.AddScheme<TestHandler3>("selector", "selector"); 332o.AddScheme<TestHandler>("specific", "specific"); 399o.AddScheme<TestHandler2>("auth1", "auth1"); 400o.AddScheme<TestHandler3>("selector", "selector"); 401o.AddScheme<TestHandler>("specific", "specific"); 468o.AddScheme<TestHandler2>("auth1", "auth1"); 469o.AddScheme<TestHandler3>("selector", "selector"); 470o.AddScheme<TestHandler>("specific", "specific");