Skip to content

metaplane/oidc-s3-proxy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

oidc-s3-proxy-example

Example AWS Lambda function that proxies requests to an S3 bucket after first authenticating with an OIDC provider.

Setup

  1. Run npm install to install the dependencies.

  2. Create a .env file with the following variables:

ISSUER_BASE_URL=https://your-okta-domain.okta.com
CLIENT_ID=your-oidc-app-client-id
CLIENT_SECRET=your-oidc-app-client-secret
BASE_URL=https://your-lambda-url.lambda-url.us-east-1.on.aws
SECRET=your-oidc-app-secret
S3_BUCKET=your-s3-bucket-name
REGION=us-east-1
  1. Deploy the lambda using npm run deploy.
  2. After a few moments, set the lambda's environment variables using npm run update-function-configuration.

Step 4 will fail if step 2 didn't complete. You can try again after another minute or two.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published