I have Services 3.4 where some changes to how they do things precipitate changes we need to do to things.
Two I'm looking at right now are the below:
- Services 3.4 prevents cross site request forgery by asking for an extra header param in the login and register calls. See #2013781: need Change Record for changes CSRF - 'CSRF validation failed' since update to 3.4, where comment #4 outlines how to get the session token first and then add it to the header.
- Services 3.4 seems to change some of the params sent over. A few I found right off the bat were from login (I am so worried that once login works, other params will be strange too!). "username" is now "name", and "password" is now "pass". Crazy, crazy services 3.4
I'm trying to fix my deployment setup but lets get all the patches to catch up Deploy to Services 3.4 here. Or let me know if we already have a place for those.
En Taro Adun
Comments
Comment #1
diwant commentedHere's what my login code looks like now, and it looks like it is able to move beyond login.
This is near line 32 of deploy/plugins/DeployAuthenticatorSession.inc
Comment #2
diwant commentedScratch that. This works better, I've pasted the entire if block so you can compare with yours. This is in 'deploy/plugins/DeployAuthenticatorSession.inc' and I've left the line numbers there
I think this fixes that issue. Let me know if this is the right approach.
Comment #3
rob_johnston commentedThe patch at comment #2 in #2017767: Error and response with 405 code when try to deploy node solves the problem as well. Some lines of the code are identical to what you provided here, so lets compare, contrast, and discuss which is better.
Comment #4
dixon_The issue itself is fixed. If there are substantial improvements that can be made, please reopen and we can discuss :)