directly use paths instead of including oauth2_provider's

This commit is contained in:
Jens Langhammer 2019-02-26 09:08:22 +01:00
parent 98b414f3e2
commit 4ae31d409b
1 changed files with 6 additions and 2 deletions

View File

@ -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"),
]