Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Currently the module assumes that you will be sending the API key as a URL / GET parameter. We would prefer to set it as a header. The patch that follows allows you to pick one of three options. GET, POST and HTTP Header.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff-2715419-5-7.txt | 1.01 KB | BR0kEN |
| #7 | services_api_key_auth-http_header_api_key-2715419-7.patch | 2.41 KB | BR0kEN |











Comments
Comment #2
ronald_istos CreditAttribution: ronald_istos at roomify - online and open source reservation solutions commentedComment #3
ronald_istos CreditAttribution: ronald_istos at roomify - online and open source reservation solutions commentedComment #4
BR0kEN$_REQUESTforGETandPOSTmethod because this superglobal variable contains data from$_POST,$_GETand$_COOKIE(http://php.net/manual/en/reserved.variables.request.php).Why not
X-Api-Key? See https://tools.ietf.org/html/rfc6648Comment #5
BR0kENrequestandheader.Comment #6
colanLooks fine to me, but it would help to explain that GET and POST values are both in REQUEST. Please put examples of these in the description.
Not sure I'll have time to test this myself, but will commit once someone else does (and it's RTBC).
Comment #7
BR0kENComment #8
gaydamaka CreditAttribution: gaydamaka as a volunteer and at FFW Agency commentedWork fine for me.
Comment #10
colanThanks. I improved the English a little bit.
Comment #12
colanJust gave credit to BR0kEN too as it's now possible to credit more than one person.
Comment #14
colan