Skip to content

Commit d41a607

Browse files
author
root
committed
updating rest api for token access
1 parent a877235 commit d41a607

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

rcamp/rcamp/settings/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
'django_filters',
2727
'crispy_forms',
2828
'rest_framework',
29-
29+
'rest_framework.authtoken',
3030
'ldapdb',
3131
'lib',
3232
'mailer',
@@ -111,4 +111,8 @@
111111

112112
REST_FRAMEWORK = {
113113
'DATETIME_FORMAT': "%Y-%m-%dT%H:%M:%SZ",
114+
'DEFAULT_AUTHENTICATION_CLASSES': [
115+
'rest_framework.authentication.TokenAuthentication',
116+
'rest_framework.authentication.SessionAuthentication',
117+
],
114118
}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ django-auth-ldap==5.1.0
77
django-crispy-forms==1.13.0
88
django-easy-pjax==1.2.0
99
django-extensions==3.2.3
10-
django-filter==22.1
10+
django-filter>=24.2
1111
django-grappelli==4.0.1
1212
django-ldapdb @ git+https://oauth2:glpat-T4wkcqXufHvA53DClNJp_W86MQp1OjE5CA.01.0y13pb1es@gitlab.rc.int.colorado.edu/rc-ops/django-ldap-rc.git@feature/python3.11-update
1313
django-material==1.11.3

0 commit comments

Comments
 (0)