Skip to content

Commit

Permalink
Feedback. Correctiong name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechArch committed Nov 7, 2024
1 parent 5af1dc9 commit 7895bf8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private static List<XacmlJsonAttribute> CreateSubjectAttributes(IEnumerable<Clai
{
partyIdAttribute = CreateXacmlJsonAttribute(AltinnXacmlUrns.ResourceId, claim.Value, DefaultType, claim.Issuer);
}
else if (IsOrgAttributeClaim(claim.Type))
else if (IsOrganizationNumberAttributeClaim(claim.Type))
{
// If claimlist contains new format of orgnumber reset any old. To ensure there is not a mismatch
orgAttribute = CreateXacmlJsonAttribute(AltinnXacmlUrns.OrganizationNumberAttribute, claim.Value, DefaultType, claim.Issuer);
Expand Down Expand Up @@ -382,7 +382,7 @@ private static bool IsResourceClaim(string name)
return name.Equals(AltinnXacmlUrns.ResourceId);
}

private static bool IsOrgAttributeClaim(string name)
private static bool IsOrganizationNumberAttributeClaim(string name)
{
// The new format of orgnumber
return name.Equals(AltinnXacmlUrns.OrganizationNumberAttribute);
Expand Down

0 comments on commit 7895bf8

Please sign in to comment.