Fix urls
This commit is contained in:
parent
dd4e9030b4
commit
db1a71bf79
|
@ -34,7 +34,7 @@ class TestAPI(APITestCase):
|
|||
)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
body = loads(response.content.decode())["preview"]
|
||||
self.assertEqual(body["iss"], "http://testserver/application/o/test/")
|
||||
self.assertEqual(body["iss"], "http://testserver/application/o/issuer/test/")
|
||||
|
||||
def test_setup_urls(self):
|
||||
"""Test Setup URLs API Endpoint"""
|
||||
|
@ -43,7 +43,7 @@ class TestAPI(APITestCase):
|
|||
)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
body = loads(response.content.decode())
|
||||
self.assertEqual(body["issuer"], "http://testserver/application/o/test/")
|
||||
self.assertEqual(body["issuer"], "http://testserver/application/o/issuer/test/")
|
||||
|
||||
# https://github.com/goauthentik/authentik/pull/5918
|
||||
@skipUnless(version_info >= (3, 11, 4), "This behaviour is only Python 3.11.4 and up")
|
||||
|
|
|
@ -42,18 +42,18 @@ urlpatterns = [
|
|||
name="token-revoke",
|
||||
),
|
||||
path(
|
||||
"<slug:application_slug>/end-session/",
|
||||
"end-session/<slug:application_slug>/",
|
||||
RedirectView.as_view(pattern_name="authentik_core:if-session-end", query_string=True),
|
||||
name="end-session",
|
||||
),
|
||||
path("<slug:application_slug>/jwks/", JWKSView.as_view(), name="jwks"),
|
||||
path("jwks/<slug:application_slug>/", JWKSView.as_view(), name="jwks"),
|
||||
path(
|
||||
"<slug:application_slug>/",
|
||||
"issuer/<slug:application_slug>/",
|
||||
RedirectView.as_view(pattern_name="authentik_providers_oauth2:provider-info"),
|
||||
name="provider-root",
|
||||
),
|
||||
path(
|
||||
"<slug:application_slug>/.well-known/openid-configuration",
|
||||
"discovery/<slug:application_slug>/.well-known/openid-configuration",
|
||||
ProviderInfoView.as_view(),
|
||||
name="provider-info",
|
||||
),
|
||||
|
|
Reference in a new issue