"""passbook oauth_client urls"""
from django.urls import path
from passbook.sources.oauth.types.manager import RequestKind
from passbook.sources.oauth.views import core, dispatcher, user
urlpatterns = [
path(
"login/<slug:source_slug>/",
dispatcher.DispatcherView.as_view(kind=RequestKind.redirect),
name="oauth-client-login",
),
"callback/<slug:source_slug>/",
dispatcher.DispatcherView.as_view(kind=RequestKind.callback),
name="oauth-client-callback",
"disconnect/<slug:source_slug>/",
core.DisconnectView.as_view(),
name="oauth-client-disconnect",
"user/<slug:source_slug>/",
user.UserSettingsView.as_view(),
name="oauth-client-user",
]