Add auth header to PowerBI Endpoint
This commit is contained in:
@@ -103,6 +103,13 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
return Unauthorized();
|
||||
}
|
||||
|
||||
if (
|
||||
!Request.Headers.TryGetValue("D-BI-AUTH", out var authKey)
|
||||
|| authKey != configuration["authKey"])
|
||||
{
|
||||
return Unauthorized();
|
||||
}
|
||||
try
|
||||
{
|
||||
return Ok(db.Layers
|
||||
|
||||
Reference in New Issue
Block a user