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:
@@ -21,6 +21,14 @@ namespace demo.Function
|
|||||||
{
|
{
|
||||||
log.LogInformation("C# HTTP trigger function processed a request.");
|
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 name = req.Query["name"];
|
||||||
|
|
||||||
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
|
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
<h2>@result</h2>
|
<h2>@result</h2>
|
||||||
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
private string result = "temp value";
|
private string result = "temp value";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user