Merged in feature/VBV-313-azure-rebase1 (pull request #115)
Update Env Variables with correct SSO parameters
This commit is contained in:
commit
ded684ecc2
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -7,5 +7,4 @@
|
|||
encrypted: env_secrets/local_lorenz.env
|
||||
encrypted: env_secrets/pg_backup_local.env
|
||||
encrypted: env_secrets/production.env
|
||||
encrypted: env_secrets/production_azure.env
|
||||
encrypted: env_secrets/production_azure_from_cloud.json
|
||||
encrypted: env_secrets/production_azure.json
|
||||
|
|
|
|||
|
|
@ -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