mirror of
https://github.com/farcasclaudiu/AzureStaticWebApp-CSharp-SimpleDemo.git
synced 2026-06-22 07:01:03 +03:00
last update
This commit is contained in:
+9
-1
@@ -20,7 +20,15 @@ namespace demo.Function
|
||||
ClaimsPrincipal principal)
|
||||
{
|
||||
log.LogInformation("C# HTTP trigger function processed a request.");
|
||||
|
||||
|
||||
bool isClaimValid = true;
|
||||
|
||||
if (principal == null && !principal.Identity.IsAuthenticated)
|
||||
{
|
||||
log.LogWarning("Request was not authenticated.");
|
||||
isClaimValid = false;
|
||||
}
|
||||
|
||||
string name = req.Query["name"];
|
||||
|
||||
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
|
||||
|
||||
Reference in New Issue
Block a user