Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/medality-palm' into medality-red…
Browse files Browse the repository at this point in the history
…wood
  • Loading branch information
erikmartus committed Oct 31, 2024
2 parents 7a817a7 + e9fc3a0 commit 68e09fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openedx/core/djangoapps/user_authn/views/logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from django.shortcuts import redirect
from django.utils.http import urlencode
from django.views.generic import TemplateView
from oauth2_provider.models import Application
# @medality_custom
from oauth2_provider.models import get_application_model

from openedx.core.djangoapps.safe_sessions.middleware import mark_user_change_as_expected
from openedx.core.djangoapps.user_authn.cookies import delete_logged_in_cookies
Expand Down Expand Up @@ -149,7 +150,8 @@ def get_context_data(self, **kwargs):

# Add the logout URIs for IDAs that the user was logged into (according to the session). This line is specific
# to DOP.
uris += Application.objects.filter(client_id__in=self.oauth_client_ids,
# @medality_custom
uris += get_application_model().objects.filter(client_id__in=self.oauth_client_ids,
redirect_uris__isnull=False).values_list('redirect_uris', flat=True)

# Add the extra logout URIs from settings. This is added as a stop-gap solution for sessions that were
Expand Down

0 comments on commit 68e09fd

Please sign in to comment.