ConsenSysMesh / web3studio-bootleg

The Shared Royalty Non-Fungible Token (a.k.a Bootleg) is an open source project started by the ConsenSys Web3Studio team. The purpose of the Shared Royalty Non-Fungible Token (SRNFT) is to make any royalty business model, from the oil and gas industry to entertainment, easy to manage with the Ethereum blockchain .
https://consensys.net/web3studio/bootleg/
Apache License 2.0
91 stars 30 forks source link

return allow iam policy #157

Closed hadasz closed 5 years ago

hadasz commented 5 years ago

Related Issue
https://github.com/ConsenSys/web3studio-bootleg/issues/130

Related PRs
This PR is not dependent on any other PR

What does this PR do?
skeleton authorizer function. It returns a policy that allows access to the dont-crypto lambda function. Going to /getrejected endpoint will invoke the dont-auth lambda, which returns a policy that allows access to /getstuff endpoint and re-routes to it.

Description of Changes
Added a module for creating a iam policy for lambda functions. Implemented an authorizer lambda.

What gif most accurately describes how I feel towards this PR?
Example of a gif