I have a web application for which I am creating a Drupal module that allows my clients to access certain data in my application.
I intend to distribute secret API keys to my clients who need to enter this value in their copy of the Drupal module. This Drupal module then navigates to my web application, but I need to make sure that the POST requests really come from this source.
How this secret key can be used to transfer some information that, when my application receives it, it knows:
(a) its from that client server.
(b) it hasnt been eavesdropped on / copied and used by someone else?
Should I use this API key as a password to encrypt some data that matches the rest of the POST request? Having received it, I decrypt it using my copy of my API key, and if it matches the rest of the data, I believe that it is verified?
Is there any staffing that does this for me? Is there something inside Zend?
source
share