If I enable this module, web services stop working and all operations return anonymous user error (put, post, delete), altought I'm logged in and I get CRFS token. If I disable this module, all works good again and I can log in and do all CRUD operations. I have checked it with three differents webs (Drupal 7.64 and 7.65).
I only need to enable the module and change settings.php ($conf['cache_backends'][] ...) and I get the problem with webservices (even without check any role). I have checked Authcache and It's working good when I enable the module and config roles, and I get cache hits (if I enable authcache debug), and then, I think it's not a problem with authcache configuration. Some suggestion?
Comments
Comment #2
znerol commentedThanks for the report. Could you please give more details about your webservices? Are you using a contrib module for that? If yes which one (URL). Also could you post request/response headers returned by those webservices for successful and for failed attempts? If those webservices are called from a browser, you can capture them with your browsers developer tools.
Comment #3
briantes commentedI'm using Services and Redis, and they are e-commerce sites (drupal 7 commerce kickstart). I use webservices to sync up my ERP with the shop. I have only one endpoint with a path (I tried to solve it adding this path to the exclude configuration field, but It didn't work) and I do "put", "post", ... to commerce products, nodes, etc. It has always run good, until I've decided to use Authcache in order to speep up the webs.
With authcache enabled and using web services I can log in and GET without problems. I've verified that I logged in because I get nodes and content that it's only visible for that user. But If I try to PUT or POST, I always get
HTTP/1.1 401 Unauthorized : Access to this operation not granted.If I disable Authcache module and erase its configuration in settings.php, everything runs good again with the same commands, and I do PUT and POST without problems.
This is my settings.php file (only the latest lines):
I think It could be solved at all if I had a way to disable authcache for webservices. Is there anyway I could do it?
Anyway, If you think you need more information, please ask me. Thanks for your help.
Comment #4
briantes commentedI've done more tests. It seems that after log in and the first GET all is good. But after this, the next commands are all with anonymous user, altough I haven't log out. I have enabled "debug mode" (an option in services module) and I can see it in drupal log.
Comment #5
znerol commented