├── 01-Login ├── Procfile ├── .gitignore ├── .dockerignore ├── requirements.txt ├── exec.sh ├── exec.ps1 ├── .env.example ├── Dockerfile ├── constants.py ├── templates │ ├── home.html │ └── dashboard.html ├── public │ └── app.css ├── README.md └── server.py ├── .github ├── CODEOWNERS └── stale.yml ├── .gitignore ├── LICENSE ├── README.md └── .circleci └── config.yml /01-Login/Procfile: -------------------------------------------------------------------------------- 1 | web: python server.py -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @auth0-samples/dx-sdks-approver 2 | -------------------------------------------------------------------------------- /01-Login/.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | .pyc 3 | *.iml 4 | .directory 5 | .idea -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.iml 3 | .idea 4 | .env 5 | __pycache__ 6 | -------------------------------------------------------------------------------- /01-Login/.dockerignore: -------------------------------------------------------------------------------- 1 | .env 2 | .env.example 3 | .gitignore 4 | .git 5 | README.md -------------------------------------------------------------------------------- /01-Login/requirements.txt: -------------------------------------------------------------------------------- 1 | flask 2 | python-dotenv 3 | requests 4 | authlib>=0.14.1 5 | six 6 | -------------------------------------------------------------------------------- /01-Login/exec.sh: -------------------------------------------------------------------------------- 1 | docker build -t auth0-python-web-01-login . 2 | docker run --env-file .env -p 3000:3000 -it auth0-python-web-01-login 3 | -------------------------------------------------------------------------------- /01-Login/exec.ps1: -------------------------------------------------------------------------------- 1 | docker build -t auth0-python-web-01-login . 2 | docker run --env-file .env -p 3000:3000 -it auth0-python-web-01-login 3 | -------------------------------------------------------------------------------- /01-Login/.env.example: -------------------------------------------------------------------------------- 1 | AUTH0_CLIENT_ID={CLIENT_ID} 2 | AUTH0_DOMAIN={DOMAIN} 3 | AUTH0_CLIENT_SECRET={CLIENT_SECRET} 4 | AUTH0_CALLBACK_URL=http://localhost:3000/callback 5 | AUTH0_AUDIENCE= 6 | -------------------------------------------------------------------------------- /01-Login/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3 2 | 3 | WORKDIR /home/app 4 | 5 | #If we add the requirements and install dependencies first, docker can use cache if requirements don't change 6 | ADD requirements.txt /home/app 7 | RUN pip install --no-cache-dir -r requirements.txt 8 | 9 | ADD . /home/app 10 | CMD python server.py 11 | 12 | EXPOSE 3000 13 | -------------------------------------------------------------------------------- /01-Login/constants.py: -------------------------------------------------------------------------------- 1 | """ Constants file for Auth0's seed project 2 | """ 3 | AUTH0_CLIENT_ID = 'AUTH0_CLIENT_ID' 4 | AUTH0_CLIENT_SECRET = 'AUTH0_CLIENT_SECRET' 5 | AUTH0_CALLBACK_URL = 'AUTH0_CALLBACK_URL' 6 | AUTH0_DOMAIN = 'AUTH0_DOMAIN' 7 | AUTH0_AUDIENCE = 'AUTH0_AUDIENCE' 8 | PROFILE_KEY = 'profile' 9 | SECRET_KEY = 'ThisIsTheSecretKey' 10 | JWT_PAYLOAD = 'jwt_payload' 11 | 12 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Configuration for probot-stale - https://github.com/probot/stale 2 | 3 | # Number of days of inactivity before an Issue or Pull Request becomes stale 4 | daysUntilStale: 90 5 | 6 | # Number of days of inactivity before an Issue or Pull Request with the stale label is closed. 7 | daysUntilClose: 7 8 | 9 | # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable 10 | exemptLabels: [] 11 | 12 | # Set to true to ignore issues with an assignee (defaults to false) 13 | exemptAssignees: true 14 | 15 | # Label to use when marking as stale 16 | staleLabel: closed:stale 17 | 18 | # Comment to post when marking as stale. Set to `false` to disable 19 | markComment: > 20 | This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️ -------------------------------------------------------------------------------- /01-Login/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
17 | Zero friction identity infrastructure, built for developers
19 | Log In 20 |