diff --git a/server/config/settings/base.py b/server/config/settings/base.py index 77068208..21f3eca9 100644 --- a/server/config/settings/base.py +++ b/server/config/settings/base.py @@ -460,7 +460,7 @@ OAUTH = { "access_token_url": env("OAUTH_ACCESS_TOKEN_URL", default="https://sso.test.b.lernetz.host/auth/realms/vbv/protocol/openid-connect/token"), "authorize_url": env("OAUTH_AUTHORIZE_URL", default="https://sso.test.b.lernetz.host/auth/realms/vbv/protocol/openid-connect/auth"), "api_base_url": env("OAUTH_API_BASE_URL", default="https://sso.test.b.lernetz.host/auth/realms/vbv/protocol/openid-connect/"), - "local_redirect_uri": env("OAUTH_LOCAL_DIRECT_URI", default="http://localhost:8000/sso/callback/"), + "local_redirect_uri": env("OAUTH_LOCAL_DIRECT_URI", default="http://localhost:3000/sso/callback/"), "client_kwargs": { 'scope': '', 'token_endpoint_auth_method': 'client_secret_post', diff --git a/server/vbv_lernwelt/sso/views.py b/server/vbv_lernwelt/sso/views.py index 7ce9c799..1434b2f7 100644 --- a/server/vbv_lernwelt/sso/views.py +++ b/server/vbv_lernwelt/sso/views.py @@ -10,7 +10,7 @@ from vbv_lernwelt.sso.jwt import decode_jwt logger = logging.getLogger(__name__) -OAUTH_REDIRECT = 'oauth-redirect' +OAUTH_REDIRECT = 'profile' def login(request):