Skip to content

Commit

Permalink
Merge pull request #455 from Sachin-Mamoru/update-claim
Browse files Browse the repository at this point in the history
Updated the acr_values claim to acr
  • Loading branch information
Sachin-Mamoru authored May 1, 2024
2 parents ad6866b + 47d3130 commit 0171f11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function checkAcr(http:Headers headers) returns Billing|http:Ok|http:Unauthorize

[jwt:Header, jwt:Payload] [_, payload] = check jwt:decode(jwtHeader);

if (payload.hasKey("acr_values")) {
if (payload["acr_values"] == "acr2") {
if (payload.hasKey("acr")) {
if (payload["acr"] == "acr2") {
return getBillingByOwner(check getOwner(headers));
} else {
return http:UNAUTHORIZED;
Expand Down

0 comments on commit 0171f11

Please sign in to comment.