Skip to content

Commit

Permalink
When systemuser, remove all other claims from PDP call
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechArch committed Nov 21, 2024
1 parent 14cf1c2 commit 507201e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<IsPackable>true</IsPackable>
<!-- NuGet package properties -->
<PackageId>Altinn.Common.PEP</PackageId>
<Version>4.1.0</Version>
<Version>4.1.1</Version>
<PackageTags>Altinn;Studio;Authorization;Policy;Enforcement;Point</PackageTags>
<Description>
Policy Enforcement Point for Attribute-based authorization using Altinn.Authorization.ABAC in ASP.Net apps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ private static List<XacmlJsonAttribute> CreateSubjectAttributes(IEnumerable<Clai
}
else if (systemUserAttribute != null)
{
// If we have a system user we only add that. No other attributes allowed by PDP
attributes.Clear();
attributes.Add(systemUserAttribute);
}
else if (legacyOrganizationNumberAttibute != null)
Expand Down

0 comments on commit 507201e

Please sign in to comment.