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

Fix URLs for OAuth application editing

parent bf682de6
No related branches found
No related tags found
1 merge request!1356Resolve "After editing an OAuth application, an AlekSIS Matrjoschka situation occurs"
Pipeline #159442 passed with warnings
......@@ -49,6 +49,7 @@ Fixed
* Special printouts included a blank white page at the end.
* Collapse icon on the progress drawer was the wrong way around.
* Deleting persons now requires confirmation.
* Editing of OAuth applications led to broken UI.
Removed
~~~~~~~
......
......@@ -1467,6 +1467,9 @@ class OAuthApplication(AbstractApplication):
return bool(set(allowed_grants) & set(grant_types))
def get_absolute_url(self):
return reverse("oauth2_application", args=[self.id])
class OAuthGrant(AbstractGrant):
"""Placeholder for customising the Grant model."""
......
......@@ -37,6 +37,22 @@ urlpatterns = [
name="oidc_configuration",
),
path("oauth/applications/", views.TemplateView.as_view(template_name="core/vue_index.html")),
path(
"oauth/applications/register/",
views.TemplateView.as_view(template_name="core/vue_index.html"),
),
path(
"oauth/applications/<int:pk>/",
views.TemplateView.as_view(template_name="core/vue_index.html"),
),
path(
"oauth/applications/<int:pk>/delete/",
views.TemplateView.as_view(template_name="core/vue_index.html"),
),
path(
"oauth/applications/<int:pk>/edit/",
views.TemplateView.as_view(template_name="core/vue_index.html"),
),
path(
"oauth/authorized_tokens/", views.TemplateView.as_view(template_name="core/vue_index.html")
),
......
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