Let's add an alter hook to the API key validation callback, so that other modules can add custom logic as needed. Simple modulename.api.php included as well. Patch incoming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mcrittenden’s picture

mglaman’s picture

Status: Needs review » Reviewed & tested by the community

This patch allows the addition of some dynamics to Services and the API key. Works like a charm.

mglaman’s picture

This could allow #2195767: Support for multiple API keys to be marked closed, as any special logic can be handled here.

  • colan committed a2d24bd on 7.x-1.x authored by mcrittenden
    Issue #2331865 by mcrittenden: Added hook_services_api_key_valid_alter...
colan’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.