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