This commit is contained in:
Stanislav Dimov 2023-11-03 22:38:14 +00:00
parent dd4e9030b4
commit db1a71bf79
No known key found for this signature in database
GPG key ID: 52C3CE2B376F25D2
2 changed files with 6 additions and 6 deletions

View file

@ -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")

View file

@ -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",
),