This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/admin/urls.py

271 lines
8.0 KiB
Python
Raw Normal View History

2018-11-11 12:41:48 +00:00
"""passbook URL Configuration"""
2019-10-28 13:26:34 +00:00
from django.urls import path
2019-12-31 11:51:16 +00:00
from passbook.admin.views import (
applications,
certificate_key_pair,
2020-05-08 16:45:53 +00:00
flows,
2019-12-31 11:51:16 +00:00
groups,
overview,
policies,
policies_bindings,
2019-12-31 11:51:16 +00:00
property_mapping,
providers,
sources,
2020-05-08 17:46:39 +00:00
stages,
stages_bindings,
stages_invitations,
stages_prompts,
2020-07-01 10:26:07 +00:00
tokens,
2019-12-31 11:51:16 +00:00
users,
)
2018-11-11 12:41:48 +00:00
urlpatterns = [
2019-12-31 11:51:16 +00:00
path("", overview.AdministrationOverviewView.as_view(), name="overview"),
2018-11-26 21:08:18 +00:00
# Applications
2019-12-31 11:51:16 +00:00
path(
"applications/", applications.ApplicationListView.as_view(), name="applications"
),
path(
"applications/create/",
applications.ApplicationCreateView.as_view(),
name="application-create",
),
path(
2020-05-22 21:22:40 +00:00
"applications/<uuid:pk>/update/",
2019-12-31 11:51:16 +00:00
applications.ApplicationUpdateView.as_view(),
name="application-update",
),
path(
2020-05-22 21:22:40 +00:00
"applications/<uuid:pk>/delete/",
2019-12-31 11:51:16 +00:00
applications.ApplicationDeleteView.as_view(),
name="application-delete",
),
2020-07-01 10:26:07 +00:00
# Tokens
path("tokens/", tokens.TokenListView.as_view(), name="tokens"),
path(
"tokens/<uuid:pk>/delete/",
tokens.TokenDeleteView.as_view(),
name="token-delete",
),
2018-11-26 21:09:04 +00:00
# Sources
2019-12-31 11:51:16 +00:00
path("sources/", sources.SourceListView.as_view(), name="sources"),
path("sources/create/", sources.SourceCreateView.as_view(), name="source-create"),
path(
"sources/<uuid:pk>/update/",
2019-12-31 11:51:16 +00:00
sources.SourceUpdateView.as_view(),
name="source-update",
),
path(
"sources/<uuid:pk>/delete/",
2019-12-31 11:51:16 +00:00
sources.SourceDeleteView.as_view(),
name="source-delete",
),
2019-02-16 09:24:31 +00:00
# Policies
path("policies/", policies.PolicyListView.as_view(), name="policies"),
path("policies/create/", policies.PolicyCreateView.as_view(), name="policy-create"),
2019-12-31 11:51:16 +00:00
path(
"policies/<uuid:pk>/update/",
policies.PolicyUpdateView.as_view(),
2019-12-31 11:51:16 +00:00
name="policy-update",
),
path(
"policies/<uuid:pk>/delete/",
policies.PolicyDeleteView.as_view(),
2019-12-31 11:51:16 +00:00
name="policy-delete",
),
path(
"policies/<uuid:pk>/test/",
policies.PolicyTestView.as_view(),
name="policy-test",
),
# Policy bindings
path(
"policies/bindings/",
policies_bindings.PolicyBindingListView.as_view(),
name="policies-bindings",
),
path(
"policies/bindings/create/",
policies_bindings.PolicyBindingCreateView.as_view(),
name="policy-binding-create",
),
path(
"policies/bindings/<uuid:pk>/update/",
policies_bindings.PolicyBindingUpdateView.as_view(),
name="policy-binding-update",
),
path(
"policies/bindings/<uuid:pk>/delete/",
policies_bindings.PolicyBindingDeleteView.as_view(),
name="policy-binding-delete",
2019-12-31 11:51:16 +00:00
),
2018-11-26 21:40:10 +00:00
# Providers
2019-12-31 11:51:16 +00:00
path("providers/", providers.ProviderListView.as_view(), name="providers"),
path(
"providers/create/",
providers.ProviderCreateView.as_view(),
name="provider-create",
),
path(
"providers/<int:pk>/update/",
providers.ProviderUpdateView.as_view(),
name="provider-update",
),
path(
"providers/<int:pk>/delete/",
providers.ProviderDeleteView.as_view(),
name="provider-delete",
),
2020-05-08 17:46:39 +00:00
# Stages
path("stages/", stages.StageListView.as_view(), name="stages"),
path("stages/create/", stages.StageCreateView.as_view(), name="stage-create"),
2019-12-31 11:51:16 +00:00
path(
2020-05-08 17:46:39 +00:00
"stages/<uuid:pk>/update/",
stages.StageUpdateView.as_view(),
name="stage-update",
2019-12-31 11:51:16 +00:00
),
path(
2020-05-08 17:46:39 +00:00
"stages/<uuid:pk>/delete/",
stages.StageDeleteView.as_view(),
name="stage-delete",
2019-12-31 11:51:16 +00:00
),
# Stage bindings
path(
"stages/bindings/",
stages_bindings.StageBindingListView.as_view(),
name="stage-bindings",
),
path(
"stages/bindings/create/",
stages_bindings.StageBindingCreateView.as_view(),
name="stage-binding-create",
),
path(
"stages/bindings/<uuid:pk>/update/",
stages_bindings.StageBindingUpdateView.as_view(),
name="stage-binding-update",
),
path(
"stages/bindings/<uuid:pk>/delete/",
stages_bindings.StageBindingDeleteView.as_view(),
name="stage-binding-delete",
),
# Stage Prompts
path(
"stages/prompts/",
stages_prompts.PromptListView.as_view(),
name="stage-prompts",
),
path(
"stages/prompts/create/",
stages_prompts.PromptCreateView.as_view(),
name="stage-prompt-create",
),
path(
"stages/prompts/<uuid:pk>/update/",
stages_prompts.PromptUpdateView.as_view(),
name="stage-prompt-update",
),
path(
"stages/prompts/<uuid:pk>/delete/",
stages_prompts.PromptDeleteView.as_view(),
name="stage-prompt-delete",
),
# Stage Invitations
path(
"stages/invitations/",
stages_invitations.InvitationListView.as_view(),
name="stage-invitations",
),
path(
"stages/invitations/create/",
stages_invitations.InvitationCreateView.as_view(),
name="stage-invitation-create",
),
path(
"stages/invitations/<uuid:pk>/delete/",
stages_invitations.InvitationDeleteView.as_view(),
name="stage-invitation-delete",
),
2020-05-08 16:45:53 +00:00
# Flows
path("flows/", flows.FlowListView.as_view(), name="flows"),
path("flows/create/", flows.FlowCreateView.as_view(), name="flow-create",),
path(
"flows/<uuid:pk>/update/", flows.FlowUpdateView.as_view(), name="flow-update",
),
path(
"flows/<uuid:pk>/execute/",
flows.FlowDebugExecuteView.as_view(),
name="flow-execute",
),
2020-05-08 16:45:53 +00:00
path(
"flows/<uuid:pk>/delete/", flows.FlowDeleteView.as_view(), name="flow-delete",
),
2020-05-08 17:46:39 +00:00
# Property Mappings
2019-12-31 11:51:16 +00:00
path(
"property-mappings/",
property_mapping.PropertyMappingListView.as_view(),
name="property-mappings",
),
path(
"property-mappings/create/",
property_mapping.PropertyMappingCreateView.as_view(),
name="property-mapping-create",
),
path(
"property-mappings/<uuid:pk>/update/",
property_mapping.PropertyMappingUpdateView.as_view(),
name="property-mapping-update",
),
path(
"property-mappings/<uuid:pk>/delete/",
property_mapping.PropertyMappingDeleteView.as_view(),
name="property-mapping-delete",
),
2018-12-14 13:24:04 +00:00
# Users
2019-12-31 11:51:16 +00:00
path("users/", users.UserListView.as_view(), name="users"),
path("users/create/", users.UserCreateView.as_view(), name="user-create"),
path("users/<int:pk>/update/", users.UserUpdateView.as_view(), name="user-update"),
path("users/<int:pk>/delete/", users.UserDeleteView.as_view(), name="user-delete"),
path(
"users/<int:pk>/reset/",
users.UserPasswordResetView.as_view(),
name="user-password-reset",
),
2019-03-08 14:49:45 +00:00
# Groups
2020-08-15 19:04:22 +00:00
path("groups/", groups.GroupListView.as_view(), name="group"),
path("groups/create/", groups.GroupCreateView.as_view(), name="group-create"),
2019-12-31 11:51:16 +00:00
path(
2020-08-15 19:04:22 +00:00
"groups/<uuid:pk>/update/",
groups.GroupUpdateView.as_view(),
name="group-update",
2019-12-31 11:51:16 +00:00
),
path(
2020-08-15 19:04:22 +00:00
"groups/<uuid:pk>/delete/",
groups.GroupDeleteView.as_view(),
name="group-delete",
2019-12-31 11:51:16 +00:00
),
# Certificate-Key Pairs
path(
"crypto/certificates/",
certificate_key_pair.CertificateKeyPairListView.as_view(),
name="certificate_key_pair",
),
path(
"crypto/certificates/create/",
certificate_key_pair.CertificateKeyPairCreateView.as_view(),
name="certificatekeypair-create",
),
path(
"crypto/certificates/<uuid:pk>/update/",
certificate_key_pair.CertificateKeyPairUpdateView.as_view(),
name="certificatekeypair-update",
),
path(
"crypto/certificates/<uuid:pk>/delete/",
certificate_key_pair.CertificateKeyPairDeleteView.as_view(),
name="certificatekeypair-delete",
),
2018-11-11 12:41:48 +00:00
]