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