Closed (fixed)
Project:
Services
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2017 at 19:33 UTC
Updated:
30 Dec 2017 at 02:14 UTC
Jump to comment: Most recent
Comments
Comment #2
falcon03 commentedComment #3
tyler.frankenstein commentedI've had luck with this contrib module: https://www.drupal.org/project/services_api_key_auth - With it I'm able to easily protect an endpoint with an API key.
Comment #4
falcon03 commented@tyler.frankenstein thanks for the suggestion. The problem with that module is that, if I understand correctly, it offers a mechanism based on user authentication. Thus you can't have an api key independent of any user plus standard user authentication where it is required. Am I right?
I'd like to protect parts of the endpoint that do not require user authentication such as the registration URI.
Comment #5
tyler.frankenstein commented@falcon03
I currently use the module to have this exact protection, i.e. you can't hit the user registration service resource unless you have the api key.
Comment #6
jacob.embree commentedMarking fixed because tyler.frankenstein's suggestion looks like it's sufficient.