We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3311eb commit 9c47cb3Copy full SHA for 9c47cb3
sample/DarkLoop.Azure.Functions.Authorize.SampleFunctions/Startup.cs
@@ -45,12 +45,12 @@ public override void Configure(IFunctionsHostBuilder builder)
45
OnChallenge = async x =>
46
{
47
// un-commenting the following lines would override what the internals do to send an unauthorized response
48
- var response = x.Response;
49
- response.ContentType = "text/plain";
50
- response.ContentLength = 5;
51
- response.StatusCode = 401;
52
- await response.WriteAsync("No go");
53
- await response.Body.FlushAsync();
+ //var response = x.Response;
+ //response.ContentType = "text/plain";
+ //response.ContentLength = 5;
+ //response.StatusCode = 401;
+ //await response.WriteAsync("No go");
+ //await response.Body.FlushAsync();
54
}
55
};
56
}, true);
0 commit comments