core: add loading view for authorisation views

This commit is contained in:
Jens Langhammer
2018-12-09 21:07:18 +01:00
parent db3ae58a21
commit e7f7a3127c
6 changed files with 83 additions and 6 deletions

View File

@ -6,7 +6,10 @@ from passbook.oauth_provider.views import oauth2
urlpatterns = [
# Custom OAuth 2 Authorize View
path('authorize/', oauth2.PassbookAuthorizationView.as_view(), name="oauth2-authorize"),
path('authorize/', oauth2.PassbookAuthorizationLoadingView.as_view(),
name="oauth2-authorize"),
path('authorize/permission_ok/', oauth2.PassbookAuthorizationView.as_view(),
name="oauth2-ok-authorize"),
# OAuth API
path('', include('oauth2_provider.urls', namespace='oauth2_provider')),
]