Skip to content

Commit

Permalink
Update requirements
Browse files Browse the repository at this point in the history
Add python-dotenv
  • Loading branch information
ahmadabdulnasir committed Jun 16, 2022
1 parent 4e9fbe8 commit 8354a61
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
9 changes: 8 additions & 1 deletion backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
astroid==2.2.5
autopep8==1.6.0
certifi==2022.6.15
Click==7.0
ecdsa==0.13.2
Flask==1.0.2
Flask-Cors==3.0.8
Flask-SQLAlchemy==2.5.0
future==0.17.1
greenlet==1.1.2
isort==4.3.18
itsdangerous==1.1.0
Jinja2==2.10.1
lazy-object-proxy==1.4.0
MarkupSafe==1.1.1
mccabe==0.6.1
pycodestyle==2.8.0
pycryptodome==3.3.1
pylint==2.3.1
python-dotenv==0.20.0
python-jose-cryptodome==1.3.2
six==1.12.0
SQLAlchemy==1.4.37
toml==0.10.2
typed-ast==1.4.2
Werkzeug==0.15.6
wrapt==1.11.1
Flask-Cors==3.0.8
17 changes: 12 additions & 5 deletions backend/src/auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@
from functools import wraps
from jose import jwt
from urllib.request import urlopen


AUTH0_DOMAIN = "dabolinux.us.auth0.com"
ALGORITHMS = ["RS256"]
API_AUDIENCE = "CoffeeShopNew"
from dotenv import load_dotenv
import os
# load environmental variables from .env
load_dotenv()

AUTH0_DOMAIN = os.getenv("AUTH0_DOMAIN")
ALGORITHMS = [os.getenv("ALGORITHMS")]
API_AUDIENCE = os.getenv("API_AUDIENCE")

# AUTH0_DOMAIN = "dabolinux.us.auth0.com"
# ALGORITHMS = ["RS256"]
# API_AUDIENCE = "CoffeeShopNew"
# API_AUDIENCE = 'http://localhost:5000'

## AuthError Exception
Expand Down

0 comments on commit 8354a61

Please sign in to comment.