1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Add OAuth2 endpoints

This commit is contained in:
Alexandre Iooss 2020-09-21 11:03:07 +02:00
parent 70448db8e5
commit 8052152ea5
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 6 additions and 0 deletions

View File

@ -20,3 +20,5 @@
55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports 55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports
# Mettre à jour les boutons mis en avant # Mettre à jour les boutons mis en avant
00 9 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_highlighted_buttons 00 9 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_highlighted_buttons
# Vider les tokens Oauth2
00 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py cleartokens

View File

@ -35,6 +35,7 @@ INSTALLED_APPS = [
'mailer', 'mailer',
'phonenumber_field', 'phonenumber_field',
'polymorphic', 'polymorphic',
'oauth2_provider',
# Django contrib # Django contrib
'django.contrib.admin', 'django.contrib.admin',

View File

@ -32,6 +32,9 @@ urlpatterns = [
path('api/', include('api.urls')), path('api/', include('api.urls')),
path('permission/', include('permission.urls')), path('permission/', include('permission.urls')),
# OAuth2 provider
path('o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
# Make coffee # Make coffee
path('coffee/', include('django_htcpcp_tea.urls')), path('coffee/', include('django_htcpcp_tea.urls')),
] ]