74 references to TestServerBuilder
Microsoft.AspNetCore.Authentication.Test (74)
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (3)
21
opt.Authority =
TestServerBuilder
.DefaultAuthority;
46
opt.Authority =
TestServerBuilder
.DefaultAuthority;
74
opt.Authority =
TestServerBuilder
.DefaultAuthority;
OpenIdConnect\OpenIdConnectChallengeTests.cs (41)
19
private static readonly string ChallengeEndpoint =
TestServerBuilder
.TestHost +
TestServerBuilder
.Challenge;
27
opt.Authority =
TestServerBuilder
.DefaultAuthority;
58
opt.Authority =
TestServerBuilder
.DefaultAuthority;
93
opt.Authority =
TestServerBuilder
.DefaultAuthority;
117
opt.Authority =
TestServerBuilder
.DefaultAuthority;
155
opt.Authority =
TestServerBuilder
.DefaultAuthority;
186
o.Authority =
TestServerBuilder
.DefaultAuthority;
194
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
217
opt.Authority =
TestServerBuilder
.DefaultAuthority;
257
opts.Authority =
TestServerBuilder
.DefaultAuthority;
296
opts.Authority =
TestServerBuilder
.DefaultAuthority;
339
opts.Authority =
TestServerBuilder
.DefaultAuthority;
371
opts.Authority =
TestServerBuilder
.DefaultAuthority;
404
opts.Authority =
TestServerBuilder
.DefaultAuthority;
433
o.Authority =
TestServerBuilder
.DefaultAuthority;
481
opt.Authority =
TestServerBuilder
.DefaultAuthority;
502
opt.Authority =
TestServerBuilder
.DefaultAuthority;
523
opt.Authority =
TestServerBuilder
.DefaultAuthority;
543
opt.Authority =
TestServerBuilder
.DefaultAuthority;
552
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
567
opt.Authority =
TestServerBuilder
.DefaultAuthority;
574
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
589
opt.Authority =
TestServerBuilder
.DefaultAuthority;
598
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
613
opt.Authority =
TestServerBuilder
.DefaultAuthority;
622
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
637
opt.Authority =
TestServerBuilder
.DefaultAuthority;
646
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
661
opt.Authority =
TestServerBuilder
.DefaultAuthority;
668
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
683
opt.Authority =
TestServerBuilder
.DefaultAuthority;
689
var transaction = await server.SendAsync(
TestServerBuilder
.TestHost +
TestServerBuilder
.ChallengeWithProperties);
OpenIdConnect\OpenIdConnectConfigurationTests.cs (6)
22
o.Authority =
TestServerBuilder
.DefaultAuthority;
444
Assert.Equal($"{
TestServerBuilder
.DefaultAuthority}/.well-known/openid-configuration", handler.Options.MetadataAddress);
455
o.Authority =
TestServerBuilder
.DefaultAuthority;
476
o.Authority =
TestServerBuilder
.DefaultAuthority;
490
o.Authority =
TestServerBuilder
.DefaultAuthority;
547
o.Authority =
TestServerBuilder
.DefaultAuthority;
OpenIdConnect\OpenIdConnectTests.cs (22)
47
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Signout);
74
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Challenge);
101
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Challenge);
127
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Challenge);
154
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Challenge);
168
var configuration =
TestServerBuilder
.CreateDefaultOpenIdConnectConfiguration();
179
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Signout);
194
o.Authority =
TestServerBuilder
.DefaultAuthority;
199
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Signout);
212
o.Authority =
TestServerBuilder
.DefaultAuthority;
217
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Signout);
227
var configuration =
TestServerBuilder
.CreateDefaultOpenIdConnectConfiguration();
229
var server =
TestServerBuilder
.CreateServer(o =>
231
o.Authority =
TestServerBuilder
.DefaultAuthority;
239
var transaction = await server.SendAsync(DefaultHost +
TestServerBuilder
.Signout);
259
var configuration =
TestServerBuilder
.CreateDefaultOpenIdConnectConfiguration();
261
var server =
TestServerBuilder
.CreateServer(o =>
263
o.Authority =
TestServerBuilder
.DefaultAuthority;
297
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => server.SendAsync(DefaultHost +
TestServerBuilder
.Signout));
307
o.Authority =
TestServerBuilder
.DefaultAuthority;
331
o.Authority =
TestServerBuilder
.DefaultAuthority;
354
o.Authority =
TestServerBuilder
.DefaultAuthority;
OpenIdConnect\TestSettings.cs (2)
47
public TestServer CreateTestServer(AuthenticationProperties properties = null, Func<HttpContext, Task> handler = null) =>
TestServerBuilder
.CreateServer(_configureOptions, handler: handler, properties: properties);
251
ValidateParameter(OpenIdConnectParameterNames.RedirectUri,
TestServerBuilder
.TestHost + _options.CallbackPath, actualParams, errors, htmlEncoded);