I can't authenticate with Drupal 7 and Services module. From REST client I send POST {"username":"username, "password":"password"} to user login endpoint. I get sessid, session_name, token and user object. I form header like:

Cookie: "session_name = sessid";

X-CSRF-Token: "token"

and after making GET to node I get: ["Access denied for user anonymous"]

What am I doing wrong?

  • OK, I finally figured this out. I had module Basic Authentication enabled but disabled "session authentication" in options of Services module. – dawidpx Jan 28 '16 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.