"""passbook oauth_client urls""" from django.urls import path from passbook.oauth_client.source_types.manager import RequestKind # from passbook.oauth_client.views import core, settings from passbook.oauth_client.views import dispatcher # from passbook.oauth_client.views.providers import (discord, facebook, github, # google, reddit, supervisr, # twitter) urlpatterns = [ # # Supervisr # url(r'^callback/(?Psupervisr)/$', # supervisr.SupervisrOAuthCallback.as_view(), name='oauth-client-callback'), # # Twitter # url(r'^callback/(?Ptwitter)/$', # twitter.TwitterOAuthCallback.as_view(), name='oauth-client-callback'), # # GitHub # url(r'^callback/(?Pgithub)/$', # github.GitHubOAuth2Callback.as_view(), name='oauth-client-callback'), # # Facebook # url(r'^callback/(?Pfacebook)/$', # facebook.FacebookOAuth2Callback.as_view(), name='oauth-client-callback'), # url(r'^login/(?Pfacebook)/$', # facebook.FacebookOAuthRedirect.as_view(), name='oauth-client-login'), # # Discord # url(r'^callback/(?Pdiscord)/$', # discord.DiscordOAuth2Callback.as_view(), name='oauth-client-callback'), # url(r'^login/(?Pdiscord)/$', # discord.DiscordOAuthRedirect.as_view(), name='oauth-client-login'), # # Reddit # url(r'^callback/(?Preddit)/$', # reddit.RedditOAuth2Callback.as_view(), name='oauth-client-callback'), # url(r'^login/(?Preddit)/$', # reddit.RedditOAuthRedirect.as_view(), name='oauth-client-login'), # # Google # url(r'^callback/(?Pgoogle)/$', # google.GoogleOAuth2Callback.as_view(), name='oauth-client-callback'), # url(r'^login/(?Pgoogle)/$', # google.GoogleOAuthRedirect.as_view(), name='oauth-client-login'), path('login//', dispatcher.DispatcherView.as_view( kind=RequestKind.redirect), name='oauth-client-login'), path('callback//', dispatcher.DispatcherView.as_view( kind=RequestKind.callback), name='oauth-client-callback'), # path('disconnect//', core.disconnect, # name='oauth-client-disconnect'), ]