Skip to content
Snippets Groups Projects
Verified Commit 27f844f8 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use oauth/ instead of oauth2/ for OAuth URLs to make them backwards-compatible

parent 918140e9
No related branches found
No related tags found
1 merge request!775Resolve "[OAuth] Endpoint URLs broken in recent refactoring"
......@@ -102,26 +102,26 @@ urlpatterns = [
ConnectDiscoveryInfoView.as_view(),
name="oidc_configuration",
),
path("oauth2/applications/", views.OAuth2ListView.as_view(), name="oauth2_applications"),
path("oauth/applications/", views.OAuth2ListView.as_view(), name="oauth2_applications"),
path(
"oauth2/applications/register/",
"oauth/applications/register/",
views.OAuth2RegisterView.as_view(),
name="register_oauth_application",
),
path(
"oauth2/applications/<int:pk>/", views.OAuth2DetailView.as_view(), name="oauth2_application"
"oauth/applications/<int:pk>/", views.OAuth2DetailView.as_view(), name="oauth2_application"
),
path(
"oauth2/applications/<int:pk>/delete/",
"oauth/applications/<int:pk>/delete/",
views.OAuth2DeleteView.as_view(),
name="delete_oauth2_application",
),
path(
"oauth2/applications/<int:pk>/edit/",
"oauth/applications/<int:pk>/edit/",
views.OAuth2EditView.as_view(),
name="edit_oauth2_application",
),
path("oauth2/", include("oauth2_provider.urls", namespace="oauth2_provider")),
path("oauth/", include("oauth2_provider.urls", namespace="oauth2_provider")),
path("__i18n__/", include("django.conf.urls.i18n")),
path(
"ckeditor/upload/",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment