diff --git a/.env.example b/.env.example index c4f14b89..04031e2d 100644 --- a/.env.example +++ b/.env.example @@ -12,3 +12,13 @@ OPENAI_API_KEY=openapi_api_key # Tavily Api Key TAVILY_API_KEY=tavily_api_key + +# AUTH0 Configures +API_IDENTIFIER=api_identifier +FASTAPI_SECRET_KEY=fastapi_secret_key + +AUTH0_DOMAIN=auth0_domain +AUTH0_CLIENT_ID=auth0_client_id +AUTH0_CLIENT_SECRET=auth0_client_secret +API_URL=api_url +WEB_URL=web_url diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 30b0f008..00000000 --- a/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -python-dotenv -python-jose -six -jose \ No newline at end of file diff --git a/server/requirements.txt b/server/requirements.txt index 8b851929..60ade414 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -17,3 +17,9 @@ boto3>=1.34.84 pyjwt>=2.4.0 pydantic>=2.7.0 unstructured[md] +python-dotenv +python-jose +six +jose +itsdangerous +fastapi_auth0 diff --git a/server/routers/auth.py b/server/routers/auth.py index 27c13023..fd9c4927 100644 --- a/server/routers/auth.py +++ b/server/routers/auth.py @@ -1,7 +1,7 @@ -from fastapi import APIRouter,Cookie, Depends, Security, Request, HTTPException, status, Response +from fastapi import APIRouter,Cookie, Request, HTTPException, status, Response from uilts.env import get_env_variable -from fastapi_auth0 import Auth0, Auth0User -from fastapi.responses import RedirectResponse, JSONResponse +from fastapi_auth0 import Auth0 +from fastapi.responses import RedirectResponse import httpx from db.supabase.client import get_client import secrets @@ -94,4 +94,4 @@ async def userinfo(petercat: str = Cookie(None)): if data : return { "data": data, "status": 200} else: - return RedirectResponse(url=LOGIN_URL, status_code=303) \ No newline at end of file + return RedirectResponse(url=LOGIN_URL, status_code=303)