142 references to SendAsync
Microsoft.AspNetCore.Authentication.Test (142)
CookieTests.cs (15)
587
var transaction3 = await server.
SendAsync
("http://example.com/normal", transaction1.CookieNameValue);
591
var transaction4 = await server.
SendAsync
("http://example.com/signout", transaction3.SetCookie[0]);
1250
var transaction = await server.
SendAsync
("http://example.com/login");
1286
var transaction = await server.
SendAsync
("http://example.com");
1312
var transaction = await server.
SendAsync
("http://example.com");
1340
var transaction = await server.
SendAsync
("http://example.com");
1364
var transaction = await server.
SendAsync
("http://example.com/notlogin?ReturnUrl=%2Fpage");
1386
var transaction = await server.
SendAsync
("http://example.com/login?ReturnUrl=%2Fpage");
1412
var transaction = await server.
SendAsync
("http://example.com/notlogout?ReturnUrl=%2Fpage");
1434
var transaction = await server.
SendAsync
("http://example.com/logout?ReturnUrl=%2Fpage");
1459
var transaction = await server.
SendAsync
("http://example.com/forbid");
1484
var transaction = await server.
SendAsync
("http://example.com/base/login");
1626
var transaction = await server.
SendAsync
("http://example.com/base/forbid");
1727
var cookie = (await server.
SendAsync
("http://www.example.com/signin")).SetCookie.FirstOrDefault();
1730
var transaction = await server.
SendAsync
("http://www.example.com/", cookie);
DynamicSchemeTests.cs (12)
33
var transaction = await server.
SendAsync
("http://example.com/auth/One");
38
transaction = await server.
SendAsync
("http://example.com/auth/One");
45
transaction = await server.
SendAsync
("http://example.com/auth/Two");
50
transaction = await server.
SendAsync
("http://example.com/auth/One");
53
transaction = await server.
SendAsync
("http://example.com/auth/Two");
63
await Assert.ThrowsAsync<InvalidOperationException>(() => server.
SendAsync
("http://example.com/auth/One"));
68
var transaction = await server.
SendAsync
("http://example.com/auth/One");
74
transaction = await server.
SendAsync
("http://example.com/auth/Two");
80
await Assert.ThrowsAsync<InvalidOperationException>(() => server.
SendAsync
("http://example.com/auth/Two"));
81
transaction = await server.
SendAsync
("http://example.com/auth/One");
87
await Assert.ThrowsAsync<InvalidOperationException>(() => server.
SendAsync
("http://example.com/auth/Two"));
88
await Assert.ThrowsAsync<InvalidOperationException>(() => server.
SendAsync
("http://example.com/auth/One"));
FacebookTests.cs (12)
57
var transaction = await server.
SendAsync
("http://example.com/challenge");
73
var transaction = await server.
SendAsync
("http://example.com/challenge");
109
var transaction = await server.
SendAsync
("http://example.com/challenge");
138
var transaction = await server.
SendAsync
("http://example.com/challenge");
170
var transaction = await server.
SendAsync
("http://example.com/challenge");
202
var transaction = await server.
SendAsync
("http://example.com/challenge");
230
var transaction = await server.
SendAsync
("http://example.com/base/login");
263
var transaction = await server.
SendAsync
("http://example.com/login");
298
var transaction = await server.
SendAsync
("http://example.com/challenge");
363
var transaction = await server.
SendAsync
(
433
var transaction = await server.
SendAsync
("https://example.com/challenge");
445
transaction = await server.
SendAsync
(
GoogleTests.cs (38)
54
var transaction = await server.
SendAsync
("https://example.com/challenge");
85
var transaction = await server.
SendAsync
("https://example.com/signIn");
98
var transaction = await server.
SendAsync
("https://example.com/signOut");
111
var transaction = await server.
SendAsync
("https://example.com/signOut");
124
var transaction = await server.
SendAsync
("https://example.com/401");
137
var transaction = await server.
SendAsync
("https://example.com/challenge");
150
var transaction = await server.
SendAsync
("https://example.com/challenge");
186
var transaction = await server.
SendAsync
("https://example.com/challenge2");
238
var transaction = await server.
SendAsync
("https://example.com/challenge2");
294
var transaction = await server.
SendAsync
("https://example.com/challenge2");
333
var transaction = await server.
SendAsync
("https://example.com/challenge");
358
var transaction = await server.
SendAsync
("https://example.com/auth");
371
var error = await Assert.ThrowsAnyAsync<Exception>(() => server.
SendAsync
("https://example.com/signin-google?code=TestCode"));
396
var sendTask = server.
SendAsync
("https://example.com/signin-google?error=access_denied&error_description=SoBad&error_uri=foobar&state=protected_state",
435
var transaction = await server.
SendAsync
("https://example.com/signin-google?error=access_denied&error_description=SoBad&error_uri=foobar&state=protected_state",
478
var transaction = await server.
SendAsync
("https://example.com/signin-google?error=access_denied&error_description=whyitfailed&error_uri=https://example.com/fail&state=protected_state",
514
var sendTask = server.
SendAsync
("https://example.com/signin-google?error=itfailed&error_description=whyitfailed&error_uri=https://example.com/fail&state=protected_state",
555
var transaction = await server.
SendAsync
(
565
transaction = await server.
SendAsync
("https://example.com/me", authCookie);
577
transaction = await server.
SendAsync
("https://example.com/tokens", authCookie);
622
var sendTask = server.
SendAsync
(
674
var sendTask = server.
SendAsync
(
718
var transaction = await server.
SendAsync
(
728
transaction = await server.
SendAsync
("https://example.com/me", authCookie);
758
var transaction = await server.
SendAsync
(
805
var transaction = await server.
SendAsync
(
824
var error = await Assert.ThrowsAnyAsync<Exception>(() => server.
SendAsync
("https://example.com/signin-google?code=TestCode"));
849
var transaction = await server.
SendAsync
(
879
var transaction = await server.
SendAsync
(
889
transaction = await server.
SendAsync
("https://example.com/authenticate", authCookie);
923
var transaction = await server.
SendAsync
(
933
transaction = await server.
SendAsync
("https://example.com/authenticateGoogle", authCookie);
967
var transaction = await server.
SendAsync
(
977
transaction = await server.
SendAsync
("https://example.com/authenticateFacebook", authCookie);
1004
var transaction = await server.
SendAsync
(
1014
transaction = await server.
SendAsync
("https://example.com/challengeFacebook", authCookie);
1066
var transaction = await server.
SendAsync
("https://example.com/challenge");
1078
transaction = await server.
SendAsync
(
JwtBearerTests.cs (3)
162
var transaction = await server.
SendAsync
("https://example.com/signIn");
171
var transaction = await server.
SendAsync
("https://example.com/signOut");
214
var transaction = await server.
SendAsync
("https://example.com/signIn");
JwtBearerTests_Handler.cs (3)
152
var transaction = await server.
SendAsync
("https://example.com/signIn");
161
var transaction = await server.
SendAsync
("https://example.com/signOut");
201
var transaction = await server.
SendAsync
("https://example.com/signIn");
MicrosoftAccountTests.cs (13)
64
var transaction = await server.
SendAsync
("http://example.com/challenge");
79
var transaction = await server.
SendAsync
("https://example.com/signIn");
92
var transaction = await server.
SendAsync
("https://example.com/signOut");
105
var transaction = await server.
SendAsync
("https://example.com/signOut");
118
var transaction = await server.
SendAsync
("http://example.com/challenge");
143
var transaction = await server.
SendAsync
("http://example.com/challenge");
161
var transaction = await server.
SendAsync
("http://example.com/challengeWithOtherScope");
179
var transaction = await server.
SendAsync
("http://example.com/challengeWithOtherScopeWithBaseAuthenticationProperties");
240
var transaction = await server.
SendAsync
(
250
transaction = await server.
SendAsync
("https://example.com/me", authCookie);
266
var transaction = await server.
SendAsync
("https://example.com/challenge");
333
var transaction = await server.
SendAsync
("https://example.com/challenge");
345
transaction = await server.
SendAsync
(
OAuthTests.cs (17)
47
await Assert.ThrowsAsync<ArgumentNullException>("ClientId", () => server.
SendAsync
("http://example.com/"));
63
await Assert.ThrowsAsync<ArgumentNullException>("ClientSecret", () => server.
SendAsync
("http://example.com/"));
79
await Assert.ThrowsAsync<ArgumentException>("CallbackPath", () => server.
SendAsync
("http://example.com/"));
95
await Assert.ThrowsAsync<ArgumentNullException>("TokenEndpoint", () => server.
SendAsync
("http://example.com/"));
111
await Assert.ThrowsAsync<ArgumentNullException>("AuthorizationEndpoint", () => server.
SendAsync
("http://example.com/"));
131
var transaction = await server.
SendAsync
("https://www.example.com/challenge");
159
var transaction = await server.
SendAsync
("https://www.example.com/challenge");
189
var transaction = await server.
SendAsync
("https://www.example.com/challenge");
215
var transaction = await server.
SendAsync
("https://www.example.com/challenge");
244
var transaction = await server.
SendAsync
("https://www.example.com/challenge");
273
var transaction = await server.
SendAsync
("https://www.example.com/challenge");
310
var transaction = await server.
SendAsync
("https://www.example.com/oauth-callback?error=access_denied&state=protected_state",
345
var transaction = await server.
SendAsync
("https://www.example.com/oauth-callback?error=access_denied&state=protected_state",
381
var transaction = await server.
SendAsync
("https://www.example.com/oauth-callback?error=access_denied&state=protected_state",
417
var transaction = await server.
SendAsync
("https://www.example.com/oauth-callback?error=custom_error&state=protected_state",
467
() => server.
SendAsync
("https://www.example.com/oauth-callback?code=random_code&state=protected_state", ".AspNetCore.Correlation.correlationId=N"));
508
() => server.
SendAsync
("https://www.example.com/oauth-callback?code=random_code&state=protected_state", ".AspNetCore.Correlation.correlationId=N"));
PolicyTests.cs (8)
38
var transaction = await server.
SendAsync
("http://example.com/auth/policy1");
41
transaction = await server.
SendAsync
("http://example.com/auth/auth1");
44
transaction = await server.
SendAsync
("http://example.com/auth/auth2");
47
transaction = await server.
SendAsync
("http://example.com/auth/auth3");
50
transaction = await server.
SendAsync
("http://example.com/auth/policy2");
353
var transaction = await server.
SendAsync
("http://example.com/auth/dynamic?auth1");
355
transaction = await server.
SendAsync
("http://example.com/auth/dynamic?auth2");
357
transaction = await server.
SendAsync
("http://example.com/auth/dynamic?auth3");
RemoteAuthenticationTests.cs (3)
69
var error = await Assert.ThrowsAsync<InvalidOperationException>(() => server.
SendAsync
("https://example.com/challenge"));
82
var error = await Assert.ThrowsAsync<InvalidOperationException>(() => server.
SendAsync
("https://example.com/challenge"));
97
var error = await Assert.ThrowsAsync<InvalidOperationException>(() => server.
SendAsync
("https://example.com/challenge"));
TwitterTests.cs (18)
70
var transaction = await server.
SendAsync
("http://example.com/challenge");
89
await Assert.ThrowsAsync<ArgumentNullException>("ConsumerKey", async () => await server.
SendAsync
("http://example.com/challenge"));
105
await Assert.ThrowsAsync<ArgumentNullException>("ConsumerSecret", async () => await server.
SendAsync
("http://example.com/challenge"));
119
var error = await Assert.ThrowsAnyAsync<Exception>(() => server.
SendAsync
("https://example.com/signin-twitter"));
132
var transaction = await server.
SendAsync
("https://example.com/signIn");
145
var transaction = await server.
SendAsync
("https://example.com/signOut");
158
var transaction = await server.
SendAsync
("https://example.com/signOut");
180
var transaction = await server.
SendAsync
("http://example.com/challenge");
208
var transaction = await server.
SendAsync
("http://example.com/challenge");
258
var transaction = await server.
SendAsync
("http://example.com/challenge");
297
await server.
SendAsync
("http://example.com/challenge");
327
await server.
SendAsync
("http://example.com/challenge");
365
var transaction = await server.
SendAsync
("http://example.com/challenge");
428
var transaction = await server.
SendAsync
(
435
transaction = await server.
SendAsync
("https://example.com/me", authCookie);
443
transaction = await server.
SendAsync
("https://example.com/tokens", authCookie);
507
var transaction = await server.
SendAsync
(
525
transaction = await server.
SendAsync
("https://example.com/me", authCookie);