Spaces:
Sleeping
Sleeping
Update modules/app.py
Browse files- modules/app.py +2 -1
modules/app.py
CHANGED
@@ -13,6 +13,7 @@ app = FastAPI()
|
|
13 |
OIDC_NAME = os.environ.get("OIDC_NAME")
|
14 |
OIDC_CLIENT_ID = os.environ.get("OIDC_CLIENT_ID")
|
15 |
OIDC_CLIENT_SECRET = os.environ.get("OIDC_CLIENT_SECRET")
|
|
|
16 |
SERVER_METADATA_URL = os.environ.get("SERVER_METADATA_URL")
|
17 |
SECRET_KEY = os.environ.get("SECRET_KEY")
|
18 |
|
@@ -20,7 +21,7 @@ SECRET_KEY = os.environ.get("SECRET_KEY")
|
|
20 |
oauth = OAuth()
|
21 |
oauth.register(
|
22 |
name=OIDC_NAME,
|
23 |
-
server_metadata_url=
|
24 |
client_id=OIDC_CLIENT_ID,
|
25 |
client_secret=OIDC_CLIENT_SECRET,
|
26 |
client_kwargs={'scope': 'openid email profile'},
|
|
|
13 |
OIDC_NAME = os.environ.get("OIDC_NAME")
|
14 |
OIDC_CLIENT_ID = os.environ.get("OIDC_CLIENT_ID")
|
15 |
OIDC_CLIENT_SECRET = os.environ.get("OIDC_CLIENT_SECRET")
|
16 |
+
AUTH0_DOMAIN = os.environ.get("AUTH0_DOMAIN")
|
17 |
SERVER_METADATA_URL = os.environ.get("SERVER_METADATA_URL")
|
18 |
SECRET_KEY = os.environ.get("SECRET_KEY")
|
19 |
|
|
|
21 |
oauth = OAuth()
|
22 |
oauth.register(
|
23 |
name=OIDC_NAME,
|
24 |
+
server_metadata_url=f'https://{AUTH0_DOMAIN}/.well-known/openid-configuration',
|
25 |
client_id=OIDC_CLIENT_ID,
|
26 |
client_secret=OIDC_CLIENT_SECRET,
|
27 |
client_kwargs={'scope': 'openid email profile'},
|