Update zauth url

This commit is contained in:
Mathieu Strypsteen 2024-10-04 18:46:49 +02:00
parent 36a2ddaa73
commit fa9cbbab34

View file

@ -141,12 +141,12 @@ BASE_URL = os.getenv("BASE_URL", "http://localhost:8000")
AUTH_USER_MODEL = "users.CustomUser"
_BASE_OAUTH_URL = os.getenv("OAUTH_BASE_URL", "https://adams.ugent.be/oauth")
_BASE_OAUTH_URL = os.getenv("OAUTH_BASE_URL", "https://zauth.zeus.gent")
OAUTH = {
"USER_API_URI": f"{_BASE_OAUTH_URL}/api/current_user/",
"ACCESS_TOKEN_URI": f"{_BASE_OAUTH_URL}/oauth2/token/",
"AUTHORIZE_URI": f"{_BASE_OAUTH_URL}/oauth2/authorize/",
"USER_API_URI": f"{_BASE_OAUTH_URL}/current_user/",
"ACCESS_TOKEN_URI": f"{_BASE_OAUTH_URL}/oauth/token/",
"AUTHORIZE_URI": f"{_BASE_OAUTH_URL}/oauth/authorize/",
"REDIRECT_URI": f"{BASE_URL}/login/zeus/authorized",
"CLIENT_ID": os.getenv("OAUTH_CLIENT_ID", "tomtest"),
"CLIENT_SECRET": os.getenv("OAUTH_CLIENT_SECRET", "blargh"),