Hi Tom,
I see that TokenAuthentication.authenticate doesnt use the CSRF, but I think my code is going through a different path, it is not calling the authenticate of TokenAuthentication I checked.
However this is my settings.py :
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
)
}
MIDDLEWARE_CLASSES = (
'corsheaders.middleware.CorsMiddleware',
'devao_boilerplate_api.lib.middleware.security.SecurityMiddleware'
)
I see my code is going through
def process_view in csrf.py, so somehow the csrf middleware is still kicking in.
I am using url(r'^api-token-auth/', 'rest_framework.authtoken.views.obtain_auth_token')
Do you know of any case where the csrf would kick in anyways?
Thanks,
Adelein