Rewrite oauth2 entries in urls.py. They were wrong, and this should

have fixed issue 70, but it doesn't.
2021-05-layout
Marnanel Thurman 2021-02-18 20:30:02 +00:00
rodzic 6174859722
commit ebc4052495
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -16,16 +16,19 @@ from . import settings
fix_oauth2_redirects()
oauth2_endpoint_views = [
path('authorize', oauth2_views.AuthorizationView.as_view(), name="authorize"),
path('token', oauth2_views.TokenView.as_view(), name="token"),
path('revoke-token', oauth2_views.RevokeTokenView.as_view(), name="revoke-token"),
url(r'authorize/$', oauth2_views.AuthorizationView.as_view(), name="authorize"),
url(r'token/$', oauth2_views.TokenView.as_view(), name="token"),
url(r'revoke-token/$', oauth2_views.RevokeTokenView.as_view(), name="revoke-token"),
]
oauth2_patterns = (oauth2_endpoint_views, "oauth2_provider")
##################################################
urlpatterns = [
path(r'admin/', admin.site.urls),
path(r'accounts/', include('django.contrib.auth.urls')),
path(r'oauth2/', include(oauth2_patterns)),
# kepi's own stuff
path(r'', include(kepi.tophat_ui.urls)),