Skip to content

Commit e7ec947

Browse files
Change readme.md and add details
1 parent 7b2fbb8 commit e7ec947

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Setup Requisites
2+
- Mongo
3+
- docker
4+
5+
### ENV setup
6+
- docker run -d -p 27017:27017 -v ~/work/data:/data/db mongo
7+
- python app.py

authenticator/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
DATABASE = "nomad"
22
DB_HOST = "localhost"
33
DB_PORT = 27017
4+
GOOGLE_CLIENT_ID = os.environ.get("GOOGLE_CLIENT_ID", "************************.apps.googleusercontent.com")
5+
GOOGLE_CLIENT_SECRET = os.environ.get("GOOGLE_CLIENT_SECRET", "***********************")
6+
GOOGLE_DISCOVERY_URL = (
7+
"https://accounts.google.com/.well-known/openid-configuration"
8+
)
File renamed without changes.

authenticator/utils/utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import requests
2+
3+
4+
def get_google_provider_cfg(discovery_url):
5+
return requests.get(discovery_url).json()

0 commit comments

Comments
 (0)