diff --git a/passbook/oauth_provider/urls.py b/passbook/oauth_provider/urls.py index 26fdf4c35..8541fe886 100644 --- a/passbook/oauth_provider/urls.py +++ b/passbook/oauth_provider/urls.py @@ -1,6 +1,7 @@ """passbook oauth_provider urls""" -from django.urls import include, path +from django.urls import path +from oauth2_provider import views from passbook.oauth_provider.views import oauth2 @@ -13,5 +14,8 @@ urlpatterns = [ path('authorize/permission_denied/', oauth2.OAuthPermissionDenied.as_view(), name='oauth2-permission-denied'), # OAuth API - path('', include('oauth2_provider.urls', namespace='oauth2_provider')), + path("authorize/", views.AuthorizationView.as_view(), name="authorize"), + path("token/", views.TokenView.as_view(), name="token"), + path("revoke_token/", views.RevokeTokenView.as_view(), name="revoke-token"), + path("introspect/", views.IntrospectTokenView.as_view(), name="introspect"), ]