Skip to content

Commit

Permalink
Add another style of policyResource (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
triptec authored and dnalborczyk committed Sep 10, 2019
1 parent 963f497 commit c09ef9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api-gateway/authMatchPolicyResource.js
Expand Up @@ -21,6 +21,10 @@ export default function authMatchPolicyResource(policyResource, resource) {
return true
}

if (policyResource === 'arn:aws:execute-api:*:*:*') {
return true
}

if (policyResource.includes('*') || policyResource.includes('?')) {
// Policy contains a wildcard resource

Expand Down

0 comments on commit c09ef9b

Please sign in to comment.