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/channels/in_oauth/urls.py

30 lines
802 B
Python
Raw Normal View History

2018-11-11 12:41:48 +00:00
"""passbook oauth_client urls"""
from django.urls import path
from passbook.channels.in_oauth.types.manager import RequestKind
from passbook.channels.in_oauth.views import core, dispatcher, user
2018-11-11 12:41:48 +00:00
urlpatterns = [
2019-12-31 11:51:16 +00:00
path(
"login/<slug:inlet_slug>/",
2019-12-31 11:51:16 +00:00
dispatcher.DispatcherView.as_view(kind=RequestKind.redirect),
name="oauth-client-login",
),
path(
"callback/<slug:inlet_slug>/",
2019-12-31 11:51:16 +00:00
dispatcher.DispatcherView.as_view(kind=RequestKind.callback),
name="oauth-client-callback",
),
path(
"disconnect/<slug:inlet_slug>/",
2019-12-31 11:51:16 +00:00
core.DisconnectView.as_view(),
name="oauth-client-disconnect",
),
path(
"user/<slug:inlet_slug>/",
2019-12-31 11:51:16 +00:00
user.UserSettingsView.as_view(),
name="oauth-client-user",
),
2018-11-11 12:41:48 +00:00
]