mirror of
https://github.com/farcasclaudiu/AzureStaticWebApp-CSharp-SimpleDemo.git
synced 2026-06-22 03:00:59 +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();
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
<h2>@result</h2>
|
||||
|
||||
|
||||
@code {
|
||||
private string result = "temp value";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user