Commit 9fdbf4bd authored by cynddl's avatar cynddl

Add initial authentication for the API using tokens

parent 2b3548f8
Pipeline #1056 passed with stages
in 3 minutes and 9 seconds
......@@ -9,5 +9,11 @@ REST_FRAMEWORK = {
"DEFAULT_PERMISSION_CLASSES": (
"rest_framework.permissions.IsAuthenticated",
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
)
}
......@@ -17,9 +17,9 @@ DJANGO_APPS = [
CONTRIB_APPS = [
"django_extensions", # http://django-extensions.readthedocs.io/
"rest_framework", # http://www.django-rest-framework.org/
"rest_framework.authtoken",
"django_und", # https://github.com/luxcem/django_und
# https://github.com/philipn/django-rest-framework-filters
# "rest_framework_filters",
"taggit",
"crispy_forms",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment