Benign go Download

copilot-plugin-from-scratch-api-key/Repair.cs.tpl

Constructs a JavaScript function dynamically
SHA-256d6d5dcbb191ef05aa7e34c36dfaad052db4ed48103dbf1ba87381e8721ac319f
MaleculeH(Po)

Evidence

Constructs a JavaScript function dynamically lines 16–24
16:41… teLogger<Repair>();
17 _configuration = configuration;
18 }
19
20 [Function("repair")]
21 public async Task<HttpResponseData> RunAsync([HttpTrigger(AuthorizationLevel.Anonymous, "get")] HttpRequestData req)
22 {
23 // Log that the HTTP trigger function received a request.
24 _logger.LogInformation("C# HTTP trigger function p …
English function-word token "and" lines 42–45
42:4… // Split assignedTo into firstName and lastName
43 var parts = r.AssignedTo.Split(' ');
44
45 // Check if the …
English function-word token "for" lines 54–58
54:26… se;
55 }
56
57 /**
58 * The reason for this implementation is that Azure Function Core Tools does not support authentication when running l …
Contains an HTTP Bearer authorization prefix lines 72–75
72:55… zation' header.
73 var apiKey = authValue.FirstOrDefault().Replace("Bearer", "").Trim();
74
75 // Get the API key from the configur …
API-key field name in structured data lines 76–78
76:15… r configApiKey = _configuration["API_KEY"];
77
78 // Check if the API key from the request matches …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.