felixleong / oauth2_sandbox

OAuth2 sample implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration / Deployment guidelines

Before we start: kindly ensure that:

  • The relevant AWS resources has already been deployed. ie; as part of terraform.
  • AWS CLI and ECS CLI has been installed & configured locally.

Fill up the necessary configuration

Ensure that the variables has been filled in for the following files. You may also override any existing variables that is deemed necessary.

File:secrets.env:

  • GGAUTH_OAUTH2_CLIENT_ID - OAuth2 Client ID
  • GGAUTH_OAUTH2_CLIENT_SECRET - OAuth2 Client Secret
  • VIRTUAL_HOST - host/domain name of the website, ie; google.com

File:local_deploy.sh

  • ACCOUNT_ID - AWS Account Identifier, eg; 34567890
  • AWS_PROFILE - AWS profile name that is configured on AWS CLI with relevant permissions. List of configured profiles can be checked via aws configure list-profiles

Build and deploy the images to ECR

Navigate to the project directory and run ./local_deploy.sh

About

OAuth2 sample implementation


Languages

Language:Python 69.0%Language:Shell 23.0%Language:Dockerfile 6.5%Language:HTML 1.5%