1 write to Response
Microsoft.AspNetCore.Authentication.Test (1)
OpenIdConnect\TestServerExtensions.cs (1)
32
Response
= await server.CreateClient().SendAsync(request),
58 references to Response
Microsoft.AspNetCore.Authentication.Test (58)
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (2)
99
Assert.Equal(HttpStatusCode.Redirect, transaction.
Response
.StatusCode);
100
Assert.StartsWith("/error?FailureMessage=", transaction.
Response
.Headers.GetValues("Location").First());
OpenIdConnect\OpenIdConnectChallengeTests.cs (28)
35
var res = transaction.
Response
;
68
var res = transaction.
Response
;
103
var res = transaction.
Response
;
124
var res = transaction.
Response
;
163
var res = transaction.
Response
;
165
Assert.Equal("text/html", transaction.
Response
.Content.Headers.ContentType.MediaType);
196
var res = transaction.
Response
;
231
var res = transaction.
Response
;
274
var res = transaction.
Response
;
311
var res = transaction.
Response
;
355
var res = transaction.
Response
;
389
var res = transaction.
Response
;
419
var res = transaction.
Response
;
487
var res = transaction.
Response
;
509
var res = transaction.
Response
;
530
var res = transaction.
Response
;
554
var res = transaction.
Response
;
576
var res = transaction.
Response
;
600
var res = transaction.
Response
;
624
var res = transaction.
Response
;
648
var res = transaction.
Response
;
670
var res = transaction.
Response
;
691
var res = transaction.
Response
;
718
var res = transaction.
Response
;
808
var res = transaction.
Response
;
847
var res = transaction.
Response
;
881
var res = transaction.
Response
;
912
var res = transaction.
Response
;
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
466
Assert.Equal(HttpStatusCode.OK, transaction.
Response
.StatusCode);
OpenIdConnect\OpenIdConnectTests.cs (21)
48
var res = transaction.
Response
;
54
transaction.
Response
.Headers.Location,
75
var res = transaction.
Response
;
102
var res = transaction.
Response
;
128
var res = transaction.
Response
;
155
var res = transaction.
Response
;
180
var res = transaction.
Response
;
185
setting.ValidateSignoutRedirect(transaction.
Response
.Headers.Location);
200
Assert.Equal(HttpStatusCode.OK, transaction.
Response
.StatusCode);
218
Assert.Equal(HttpStatusCode.Redirect, transaction.
Response
.StatusCode);
220
settings.ValidateSignoutRedirect(transaction.
Response
.Headers.Location,
240
Assert.Equal(HttpStatusCode.Redirect, transaction.
Response
.StatusCode);
242
var query = transaction.
Response
.Headers.Location.Query.Substring(1).Split('&')
271
Assert.Equal(HttpStatusCode.Redirect, transaction.
Response
.StatusCode);
273
var query = transaction.
Response
.Headers.Location.Query.Substring(1).Split('&')
320
Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.
Response
.StatusCode);
321
Assert.DoesNotContain(remoteSignOutTransaction.
Response
.Headers, h => h.Key == "Set-Cookie");
344
Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.
Response
.StatusCode);
345
Assert.DoesNotContain(remoteSignOutTransaction.
Response
.Headers, h => h.Key == "Set-Cookie");
368
Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.
Response
.StatusCode);
369
Assert.Contains(remoteSignOutTransaction.
Response
.Headers, h => h.Key == "Set-Cookie");
OpenIdConnect\TestServerExtensions.cs (6)
35
if (transaction.
Response
.Headers.Contains("Set-Cookie"))
37
transaction.SetCookie = transaction.
Response
.Headers.GetValues("Set-Cookie").ToList();
40
transaction.ResponseText = await transaction.
Response
.Content.ReadAsStringAsync();
41
if (transaction.
Response
.Content != null &&
42
transaction.
Response
.Content.Headers.ContentType != null &&
43
transaction.
Response
.Content.Headers.ContentType.MediaType == "text/xml")