Skip to content

Commit

Permalink
Merge pull request #56 from Pigius/feature/fix
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
Pigius authored Apr 27, 2024
2 parents 2b8c3bb + 3689c0e commit 7dd556f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Consider testing it with our prepared test scenarios:
| [Ecommerce with Cognito Integration usage Scenario](scenarios/ecommerceCognitoIntegrationScenario/ecommerceCognitoIntegrationScenario.json) | This scenario demonstrates the use of Cognito integration in Amazon Verified Permissions. It allows sellers to discount if they have agreed discount privilege. Refer to this [blogpost](https://dev.to/aws-builders/authorization-and-amazon-verified-permissions-a-new-way-to-manage-permissions-part-viii-integration-with-cognito-pgb) for setup. |
| [Ecommerce with Hierarchy and ABAC Scenario](scenarios/ecommerceHierarchyAndAbacScenario/ecommerceHierarchyAndAbacScenario.json) | This scenario demonstrates the use of Hierarchy and ABAC (with Entities) in Amazon Verified Permissions. It allows sellers to sell car if department matches the car's department. |
| [Ecommerce with Batch Authorization Scenario](scenarios/ecommerceBatchScenario/ecommerceBatchScenario.json) | This scenario demonstrates the use of Batch Authorization in Amazon Verified Permissions. |
| [Ecommerce with Cognito Groups Scenario](scenarios/ecommerceCognitoGroupsScenario/ecommerceCognitoGroupsScenario.json) | This scenario demonstrates the use of Cognito Groups in Amazon Verified Permissions. |
| [Ecommerce with Cognito Groups Scenario](scenarios/ecommerceCognitoGroupsScenario/ecommerceCognitoGroupsScenario.json) | This scenario demonstrates the use of Cognito Groups in Amazon Verified Permissions. There is CF for Cognito to be reused. Refer to this [blogpost](https://dev.to/aws-heroes/authorization-and-amazon-verified-permissions-a-new-way-to-manage-permissions-part-xv-avp-with-cognito-groups-4gjm). |

### Note

Expand Down
2 changes: 0 additions & 2 deletions awsOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,6 @@ export const createIdentitySource = async (
configuration: configuration,
};

console.log(input);

const command = new CreateIdentitySourceCommand(input);

try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "avp-cli",
"version": "2.7.0",
"version": "2.7.1",
"description": "Small CLI to help interacts with the Amazon Verified Permissions (AVP) service.",
"main": "index.js",
"type": "module",
Expand Down
13 changes: 6 additions & 7 deletions structureAuthorizationWithTokenRequest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"policyStoreId": "WKdpLbZEBF9W7XQWyRSXy1",
"accessToken": "eyJraWQiOiJWVzdWT0xvbVU1OVRiemg0OVMzdW02MjdpSzVIeG5sR2txTzZRNFZnTHVrPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJmMjQ1YTQ1NC05MGMxLTcwODQtNzcwOS0xZGZiZmRiMTA5MzAiLCJjb2duaXRvOmdyb3VwcyI6WyJsb2FuX2NyZWF0b3JzIl0sImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC5ldS13ZXN0LTEuYW1hem9uYXdzLmNvbVwvZXUtd2VzdC0xX3NYVkM0alVEZiIsImNsaWVudF9pZCI6IjViMzN2MmdmMGNyMWM0bjZxajA0cmFqamhmIiwib3JpZ2luX2p0aSI6ImUwYmE3MjgxLTMzMTctNGZjYy04NDk3LTMxMjZlMWY5NmUwOSIsImV2ZW50X2lkIjoiNzM0ZGJmMGYtNmEyOS00MjNlLTg0MTMtZTAxODgxMmM1NDZhIiwidG9rZW5fdXNlIjoiYWNjZXNzIiwic2NvcGUiOiJhd3MuY29nbml0by5zaWduaW4udXNlci5hZG1pbiIsImF1dGhfdGltZSI6MTcxNDE2NjY5NiwiZXhwIjoxNzE0MTcwMjk1LCJpYXQiOjE3MTQxNjY2OTYsImp0aSI6IjM2NWRlMWRlLWE3YWUtNGIzZS04ZDNhLWI1NThhNTQwNDcwYSIsInVzZXJuYW1lIjoiZGFuaWVsIn0.A06BOgfQwdrmjTX7GFfZ12dA0eL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6a2lld2ljeisxMjM0QGdtYWlsLmNvbSJ9.t8uR-3MCh1tsfELsJzVZeLoHggakt6fKMy5ArpUIU7FKpG9pe7hlJxJ_GnyJ1N_6rTGRyxbPycUY1EmpZx5y1M0g_DSDO_IpAqXJX_lNzTcHxWFNsM55nDcuCY576aOYJ_p16RdT7NnXgp48if_AteYG_vYid6i2BFFO5xbHvDK0V2R62CGGqGhuSTa_C62n_-PYhE4R9ow8r1xkuGK9RRkJ2ZKyCmQM2-jfnSiFjUR36COLuA1bTz_ARCMtWifuovY2dvbEJP4AKphPMJLnbd-2_GdRW_GReIs8cDG737X1oA8WUZNmJf-JEq06xiJjnSjqyyz4Yipn2lvyVwgXwg",
"policyStoreId": "your-policy-store-id",
"accessToken": "ACCESS_TOKEN_HERE",
"action": {
"actionType": "ManagementPlatform::Action",
"actionId": "View"
"actionType": "Action::Type",
"actionId": "action_id"
},
"resource": {
"entityType": "ManagementPlatform::Document",
"entityId": "*"
"entityType": "Resource::Type",
"entityId": "resource_id"
},
"entities": {
"entityList": []
Expand Down

0 comments on commit 7dd556f

Please sign in to comment.