OCI Function to use Custom Scopes to Restrict Access to OIC REST Endpoints with OCI IAM and API Gateway. This repo is the code for my blog post https://www.ateam-oracle.com/post/use-custom-scopes-to-restrict-access-to-oic-rest-endpoints-with-oci-iam-and-api-gateway
how to run in OCI:
- Login to OCI Tenancy
- Create an OCI Function
- fn init --runtime python MyCustomAuthorizer, then press Enter.
- Navigate to the function directory, open the func.py file, and seamlessly replace the existing code snippet with the func.py.
- Copy the ociVault.py file in the same folder location.
- Include the requirements from the requirements.txt file
- Navigate to the function folder and run the following command fn -v deploy --app MyCustomAuthorizer to deploy it.