diff --git a/openedx/core/djangoapps/user_authn/views/logout.py b/openedx/core/djangoapps/user_authn/views/logout.py index a6684c96e5..96e6f39a44 100644 --- a/openedx/core/djangoapps/user_authn/views/logout.py +++ b/openedx/core/djangoapps/user_authn/views/logout.py @@ -3,7 +3,6 @@ import re -import edx_oauth2_provider import six.moves.urllib.parse as parse # pylint: disable=import-error from django.conf import settings from django.contrib.auth import logout @@ -75,9 +74,6 @@ class LogoutView(TemplateView): # Get third party auth provider's logout url self.tpa_logout_url = tpa_pipeline.get_idp_logout_url_from_running_pipeline(request) - # Get the list of authorized clients before we clear the session. - self.oauth_client_ids = request.session.get(edx_oauth2_provider.constants.AUTHORIZED_CLIENTS_SESSION_KEY, []) - logout(request) response = super(LogoutView, self).dispatch(request, *args, **kwargs)