From 69d7936bd198541c35ce3b30ae0727b7849d4268 Mon Sep 17 00:00:00 2001 From: Eric Lipe Date: Thu, 12 Sep 2024 13:21:33 -0400 Subject: [PATCH] - Move client id creation to respective brances --- tdrs-backend/tdpservice/users/api/logout_redirect_oidc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdrs-backend/tdpservice/users/api/logout_redirect_oidc.py b/tdrs-backend/tdpservice/users/api/logout_redirect_oidc.py index f948b867d..4b6db4ff3 100644 --- a/tdrs-backend/tdpservice/users/api/logout_redirect_oidc.py +++ b/tdrs-backend/tdpservice/users/api/logout_redirect_oidc.py @@ -49,7 +49,6 @@ def get(self, request, *args, **kwargs): # params needed by the logout endpoint logout_params = { - "client_id": settings.LOGIN_GOV_CLIENT_ID, "post_logout_redirect_uri": settings.BASE_URL + "/logout", "state": state, } @@ -63,5 +62,6 @@ def get(self, request, *args, **kwargs): encoded_params = urlencode(logout_params, quote_via=quote_plus) return HttpResponseRedirect(ams_configuration["end_session_endpoint"] + "?" + encoded_params) else: + logout_params["client_id"] = settings.LOGIN_GOV_CLIENT_ID encoded_params = urlencode(logout_params, quote_via=quote_plus) return HttpResponseRedirect(settings.LOGIN_GOV_LOGOUT_ENDPOINT + "?" + encoded_params)