Service Browser takes first API key regardless of whether domain matches

andrewlevine - November 9, 2009 - 18:15
Project:Services
Version:6.x-0.15
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

The service browser will use the first entered API key regardless of whether it has the correct domain or not. You will get the "invalid API key" message even if you have a key corresponding to the correct domain available.

The attached patch makes the service browser guess the correct key based on domain. If a key corresponding to the correct domain isn't available it will warn the user that their service browser method call probably won't work and points them to the key page.

AttachmentSize
service_browser_key.patch1.73 KB
 
 

Drupal is a registered trademark of Dries Buytaert.