back out auth policy header support as Blazor HttpClient is registered as Scoped and can not support variable headers
This commit is contained in:
@ -35,16 +35,6 @@ namespace Oqtane.Security
|
||||
entityId = -1;
|
||||
}
|
||||
}
|
||||
if (entityId == -1)
|
||||
{
|
||||
if (ctx.Request.Headers.ContainsKey("auth" + requirement.EntityName.ToLower() + "id"))
|
||||
{
|
||||
if (!int.TryParse(ctx.Request.Headers["auth" + requirement.EntityName.ToLower() + "id"], out entityId))
|
||||
{
|
||||
entityId = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// legacy support
|
||||
if (entityId == -1)
|
||||
|
Reference in New Issue
Block a user