Update Env Variables with correct SSO parameters
This commit is contained in:
parent
a591585480
commit
515f7a7b1b
Binary file not shown.
Binary file not shown.
|
|
@ -10,7 +10,6 @@ from vbv_lernwelt.sso.jwt import decode_jwt
|
|||
|
||||
logger = structlog.get_logger(__name__)
|
||||
|
||||
OAUTH_SUCCESS_REDIRECT = "profile"
|
||||
OAUTH_FAIL_REDIRECT = "login-error"
|
||||
|
||||
|
||||
|
|
@ -38,8 +37,7 @@ def authorize(request):
|
|||
user, created = get_user_model().objects.create_or_update_by_email(user_data)
|
||||
|
||||
dj_login(request, user)
|
||||
# todo: redirect to other page if new user
|
||||
return redirect(f"/{OAUTH_SUCCESS_REDIRECT}?state=success") # to be defined
|
||||
return redirect(f"/")
|
||||
|
||||
|
||||
def _user_data_from_token_data(token: dict) -> dict:
|
||||
|
|
|
|||
Loading…
Reference in New Issue