115 references to Response
Certificate.Optional.Sample (1)
Startup.cs (1)
27context.Response.Redirect(redirect, permanent: false, preserveMethod: true);
Microsoft.AspNetCore.Authentication.Cookies (10)
CookieAuthenticationEvents.cs (10)
46context.Response.Headers.Location = context.RedirectUri; 47context.Response.StatusCode = 401; 51context.Response.Redirect(context.RedirectUri); 63context.Response.Headers.Location = context.RedirectUri; 64context.Response.StatusCode = 403; 68context.Response.Redirect(context.RedirectUri); 80context.Response.Headers.Location = context.RedirectUri; 84context.Response.Redirect(context.RedirectUri); 96context.Response.Headers.Location = context.RedirectUri; 100context.Response.Redirect(context.RedirectUri);
Microsoft.AspNetCore.Authentication.Negotiate.Test (12)
EventTests.cs (12)
32Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode); 33Assert.False(context.Response.Headers.ContainsKey(HeaderNames.WWWAuthenticate)); 55context.Response.StatusCode = StatusCodes.Status418ImATeapot; 56context.Response.Headers.WWWAuthenticate = "Teapot"; 103context.Response.StatusCode = StatusCodes.Status418ImATeapot; 104context.Response.Headers.WWWAuthenticate = "Teapot"; 153context.Response.StatusCode = StatusCodes.Status418ImATeapot; 154context.Response.Headers.WWWAuthenticate = "Teapot"; 203context.Response.StatusCode = StatusCodes.Status418ImATeapot; 204context.Response.Headers.WWWAuthenticate = "Teapot"; 253context.Response.StatusCode = StatusCodes.Status418ImATeapot; 254context.Response.Headers.WWWAuthenticate = "Teapot";
Microsoft.AspNetCore.Authentication.OAuth (1)
Events\OAuthEvents.cs (1)
21context.Response.Redirect(context.RedirectUri);
Microsoft.AspNetCore.Authentication.Test (78)
FacebookTests.cs (1)
97context.Response.Redirect(context.RedirectUri + "&custom=test");
GoogleTests.cs (7)
327context.Response.Redirect(context.RedirectUri + "&custom=test"); 389ctx.Response.Redirect("/error?FailureMessage=AccessDenied"); 471ctx.Response.Redirect("/error?FailureMessage=" + UrlEncoder.Default.Encode(ctx.Failure.Message)); 507ctx.Response.Redirect("/error?FailureMessage=" + UrlEncoder.Default.Encode(ctx.Failure.Message)); 608ctx.Response.Redirect("/error?FailureMessage=" + UrlEncoder.Default.Encode(ctx.Failure.Message)); 661ctx.Response.Redirect("/error?FailureMessage=" + UrlEncoder.Default.Encode(ctx.Failure.Message)); 840ctx.Response.Redirect("/error?FailureMessage=" + UrlEncoder.Default.Encode(ctx.Failure.Message));
JwtBearerTests.cs (9)
184context.Response.StatusCode = 401; 595context.Response.StatusCode = StatusCodes.Status202Accepted; 666context.Response.StatusCode = StatusCodes.Status202Accepted; 742context.Response.StatusCode = StatusCodes.Status202Accepted; 853context.Response.StatusCode = 418; 854return context.Response.WriteAsync("You Shall Not Pass"); 876if (!context.Response.HasStarted) 878context.Response.StatusCode = 418; 879return context.Response.WriteAsync("You Shall Not Pass");
JwtBearerTests_Handler.cs (9)
174context.Response.StatusCode = 401; 556context.Response.StatusCode = StatusCodes.Status202Accepted; 624context.Response.StatusCode = StatusCodes.Status202Accepted; 694context.Response.StatusCode = StatusCodes.Status202Accepted; 799context.Response.StatusCode = 418; 800return context.Response.WriteAsync("You Shall Not Pass"); 821if (!context.Response.HasStarted) 823context.Response.StatusCode = 418; 824return context.Response.WriteAsync("You Shall Not Pass");
MicrosoftAccountTests.cs (1)
57context.Response.Redirect(context.RedirectUri + "&custom=test");
OAuthTests.cs (3)
337context.Response.StatusCode = StatusCodes.Status406NotAcceptable; 373context.Response.StatusCode = StatusCodes.Status406NotAcceptable; 409context.Response.StatusCode = StatusCodes.Status406NotAcceptable;
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (1)
87ctx.Response.Redirect("/error?FailureMessage=" + UrlEncoder.Default.Encode(ctx.Failure.Message));
OpenIdConnect\OpenIdConnectChallengeTests.cs (2)
376context.Response.StatusCode = 410; 377context.Response.Headers.Add("tea", "Oolong");
OpenIdConnect\OpenIdConnectEventTests.cs (20)
86context.Response.StatusCode = StatusCodes.Status202Accepted; 157context.Response.StatusCode = StatusCodes.Status202Accepted; 182context.Response.StatusCode = StatusCodes.Status202Accepted; 193context.Response.StatusCode = StatusCodes.Status202Accepted; 267context.Response.StatusCode = StatusCodes.Status202Accepted; 297context.Response.StatusCode = StatusCodes.Status202Accepted; 374context.Response.StatusCode = StatusCodes.Status202Accepted; 405context.Response.StatusCode = StatusCodes.Status202Accepted; 482context.Response.StatusCode = StatusCodes.Status202Accepted; 513context.Response.StatusCode = StatusCodes.Status202Accepted; 593context.Response.StatusCode = StatusCodes.Status202Accepted; 625context.Response.StatusCode = StatusCodes.Status202Accepted; 723context.Response.StatusCode = StatusCodes.Status202Accepted; 771context.Response.StatusCode = StatusCodes.Status202Accepted; 817context.Response.StatusCode = StatusCodes.Status202Accepted; 888context.Response.StatusCode = StatusCodes.Status202Accepted; 941context.Response.StatusCode = StatusCodes.Status202Accepted; 983context.Response.StatusCode = StatusCodes.Status202Accepted; 1030context.Response.StatusCode = StatusCodes.Status202Accepted; 1096context.Response.StatusCode = StatusCodes.Status202Accepted;
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (20)
86context.Response.StatusCode = StatusCodes.Status202Accepted; 157context.Response.StatusCode = StatusCodes.Status202Accepted; 182context.Response.StatusCode = StatusCodes.Status202Accepted; 193context.Response.StatusCode = StatusCodes.Status202Accepted; 267context.Response.StatusCode = StatusCodes.Status202Accepted; 297context.Response.StatusCode = StatusCodes.Status202Accepted; 374context.Response.StatusCode = StatusCodes.Status202Accepted; 405context.Response.StatusCode = StatusCodes.Status202Accepted; 482context.Response.StatusCode = StatusCodes.Status202Accepted; 513context.Response.StatusCode = StatusCodes.Status202Accepted; 593context.Response.StatusCode = StatusCodes.Status202Accepted; 625context.Response.StatusCode = StatusCodes.Status202Accepted; 723context.Response.StatusCode = StatusCodes.Status202Accepted; 771context.Response.StatusCode = StatusCodes.Status202Accepted; 817context.Response.StatusCode = StatusCodes.Status202Accepted; 888context.Response.StatusCode = StatusCodes.Status202Accepted; 941context.Response.StatusCode = StatusCodes.Status202Accepted; 983context.Response.StatusCode = StatusCodes.Status202Accepted; 1030context.Response.StatusCode = StatusCodes.Status202Accepted; 1096context.Response.StatusCode = StatusCodes.Status202Accepted;
TwitterTests.cs (3)
55context.Response.Redirect(context.RedirectUri + "&custom=test"); 244context.Response.StatusCode = StatusCodes.Status406NotAcceptable; 350context.Response.StatusCode = StatusCodes.Status406NotAcceptable;
WsFederation\WsFederationTest.cs (1)
352context.Response.Headers["EventHeader"] = "OnRemoteSignOut";
WsFederation\WsFederationTest_Handler.cs (1)
348context.Response.Headers["EventHeader"] = "OnRemoteSignOut";
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterEvents.cs (1)
21context.Response.Redirect(context.RedirectUri);
OpenIdConnectSample (4)
Startup.cs (4)
128c.Response.StatusCode = 500; 129c.Response.ContentType = "text/plain"; 133return c.Response.WriteAsync(c.Exception.ToString()); 135return c.Response.WriteAsync("An error occurred processing your authentication.");
SocialSample (8)
Startup.cs (8)
216context.Response.StatusCode = 500; 217context.Response.ContentType = "text/html"; 218await context.Response.WriteAsync("<html><body>"); 219await context.Response.WriteAsync("A remote failure has occurred: <br>" + 224await context.Response.WriteAsync("Properties:<br>"); 227await context.Response.WriteAsync($"-{ HtmlEncoder.Default.Encode(pair.Key)}={ HtmlEncoder.Default.Encode(pair.Value)}<br>"); 231await context.Response.WriteAsync("<a href=\"/\">Home</a>"); 232await context.Response.WriteAsync("</body></html>");