Skip to content

Commit

Permalink
fix: allow use of django_language cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Aug 7, 2023
1 parent 0fd5a8c commit 7f57cbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/benefit/helsinkibenefit/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,12 @@
OIDC_OP_JWKS_ENDPOINT = f"{OIDC_OP_BASE_URL}/jwks"
OIDC_OP_LOGOUT_ENDPOINT = f"{OIDC_OP_BASE_URL}/end-session"
OIDC_OP_LOGOUT_CALLBACK_URL = env.str("OIDC_OP_LOGOUT_CALLBACK_URL")

# Language selection is done with accept-language header in this project
OIDC_DISABLE_LANGUAGE_COOKIE = True
# UPDATE: 2023-08-07
# Didn't seem to be working correctly with EAUTH forwards and landing back to callback url
# Changing this to False as nextjs's language autodetect seems to be at set to false too
OIDC_DISABLE_LANGUAGE_COOKIE = False

LOGIN_REDIRECT_URL = env.str("LOGIN_REDIRECT_URL")
LOGIN_REDIRECT_URL_FAILURE = env.str("LOGIN_REDIRECT_URL_FAILURE")
Expand Down

0 comments on commit 7f57cbf

Please sign in to comment.