Skip to content

Commit 9c47cb3

Browse files
committed
commenting challenge logic
1 parent f3311eb commit 9c47cb3

File tree

1 file changed

+6
-6
lines changed
  • sample/DarkLoop.Azure.Functions.Authorize.SampleFunctions

1 file changed

+6
-6
lines changed

sample/DarkLoop.Azure.Functions.Authorize.SampleFunctions/Startup.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ public override void Configure(IFunctionsHostBuilder builder)
4545
OnChallenge = async x =>
4646
{
4747
// 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();
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();
5454
}
5555
};
5656
}, true);

0 commit comments

Comments
 (0)