Skip to content

Commit

Permalink
Merge pull request #2166 from City-of-Helsinki/hl-838-cont
Browse files Browse the repository at this point in the history
HL-838 cont. | Allow use of django_language cookie like in TET
  • Loading branch information
JanneJuhola authored Aug 7, 2023
2 parents 0fd5a8c + 7f57cbf commit d10e377
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 d10e377

Please sign in to comment.