Skip to content

Commit

Permalink
feat: add name for OIDC backchannel logout url
Browse files Browse the repository at this point in the history
Refs: HP-2280
  • Loading branch information
charn committed Mar 14, 2024
1 parent 99980a8 commit ffef69f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helusers/tests/test_back_channel_logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pytest
from django.http import HttpRequest, HttpResponse
from django.test import Client
from django.urls import reverse

from helusers.jwt import JWT
from helusers.models import OIDCBackChannelLogoutEvent
Expand Down Expand Up @@ -64,7 +65,7 @@ def execute_back_channel_logout(
params["content_type"] = content_type

client = Client()
return getattr(client, http_method)("/logout/oidc/backchannel/", **params)
return getattr(client, http_method)(reverse("helusers:oidc_backchannel"), **params)


@pytest.mark.django_db
Expand Down
1 change: 1 addition & 0 deletions helusers/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
path(
"logout/oidc/backchannel/",
csrf_exempt(views.OIDCBackChannelLogout.as_view()),
name="oidc_backchannel",
),
]
)

0 comments on commit ffef69f

Please sign in to comment.