Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Fix allow check (#22)
Browse files Browse the repository at this point in the history
* Updates to verified permissions API

* Uppercase allow string in AVP check
  • Loading branch information
tbailey authored Jun 9, 2023
1 parent f530dca commit 9ac8304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amazon-verfied-permissions/amazon-verified-permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func IsAuthorized(_ *app.AppGateway, _ http.ResponseWriter, req *http.Request) b
}

log.Println("isAuthorized decision from Amazon verified permissions: " + string(responseBody))
return response.Decision == "Allow"
return response.Decision == "ALLOW"
}

// createVerifiedPermissionsRequest builds a new verified permissions API request with the supplied
Expand Down

0 comments on commit 9ac8304

Please sign in to comment.