This may be legacy interface stuff, but if you just check the "use keys" box on admin/build/services/settings, Services does *not* use keys. You have to check the "use sessid" box as well.

Comments

greg.harvey’s picture

Title: API keys are not enabled unless you check *both* "Use keys" and "Use sessid" boxes » views.get and node.get methods do not appear to use API keys, even if enabled

Actually, this is incorrect. I was caught out by switching methods.

What *is* correct is the new title. views.get and node.get are ignoring the API keys.

greg.harvey’s picture

Ok, I just spotted this line in hook_service() in both modules:

'#key'              => FALSE,

So that makes sense! Question is, why? I presume this is a debug option accidentally left in? With that assumption in mind, please find patch code attached (patched against 6.x-0.13). If this is not the case, please explain why keys are disabled for these two methods.

Thanks! =)

greg.harvey’s picture

Status: Active » Needs review
marcingy’s picture

Status: Needs review » Reviewed & tested by the community
snelson’s picture

Assigned: Unassigned » snelson
Status: Reviewed & tested by the community » Fixed

Committed to D5 and D6

Thanks.

Status: Fixed » Closed (fixed)

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