2018-11-11 12:41:48 +00:00
|
|
|
"""passbook oauth_client urls"""
|
|
|
|
|
|
|
|
from django.urls import path
|
|
|
|
|
2019-10-07 15:33:48 +01:00
|
|
|
from passbook.sources.oauth.types.manager import RequestKind
|
|
|
|
from passbook.sources.oauth.views import core, dispatcher, user
|
2018-11-11 12:41:48 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('login/<slug:source_slug>/', dispatcher.DispatcherView.as_view(
|
|
|
|
kind=RequestKind.redirect), name='oauth-client-login'),
|
|
|
|
path('callback/<slug:source_slug>/', dispatcher.DispatcherView.as_view(
|
|
|
|
kind=RequestKind.callback), name='oauth-client-callback'),
|
2018-11-22 12:12:24 +00:00
|
|
|
path('disconnect/<slug:source_slug>/', core.DisconnectView.as_view(),
|
|
|
|
name='oauth-client-disconnect'),
|
2019-03-13 15:49:30 +00:00
|
|
|
path('user/<slug:source_slug>/', user.UserSettingsView.as_view(),
|
|
|
|
name='oauth-client-user'),
|
2018-11-11 12:41:48 +00:00
|
|
|
]
|