Closed (works as designed)
Project:
Services Basic Authentication
Version:
7.x-1.4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 May 2016 at 11:25 UTC
Updated:
14 Jun 2016 at 15:54 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
klaatuveratanecto commentedI have created a patch that fixes it.
Comment #3
vblanco7 commentedIt's Work!! Thank you so much!! :)
Comment #4
f0ns commentedMy user/register functionality stopped working after this patch, I'll look into this tomorrow.
I get the following now when user/register is called: (Unauthorized : No credentials were supplied in the request.)
My call from an AngularJS app is the following:
Comment #5
markpavlitski commented@klaatuveratanecto - this happens by design.
This module only provides authentication on behalf of services module, it does not deal with request authorization. It will not block requests, that is up to services and Drupal's permission system.
If an anonymous user has permission to access the data displayed in the endpoint, then the request will succeed even if the request is un-authenticated.
Furthermore, services allows more than one authentication mechanism to be used and they are tried in sequence, implementing the patch provided would break that behaviour.
Comment #6
markpavlitski commented