Changed the endpoint name to GetSiteToken
MODIFY
src/WebJobs.Script.WebHost/Controllers/InstanceController.cs
src/WebJobs.Script.WebHost/Controllers/InstanceController.cs
@@ -69,9 +69,9 @@ public IActionResult GetInstanceInfo()
}
[HttpGet]
- [Route("admin/gettoken")]
+ [Route("admin/getsitetoken")]
[Authorize(Policy = PolicyNames.AdminAuthLevel)]
- public IActionResult GetRequestHeaderToken()
+ public IActionResult GetSiteToken()
{
// This endpoint is used by getting a temporary x-ms-site-restricted-token to for KuduLite request in Linux Consumption
string websiteEncryptionKey = _environment.GetEnvironmentVariable(EnvironmentSettingNames.WebSiteAuthEncryptionKey);

Changed the endpoint name to GetSiteToken