Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I tried oauthconnector with http://orcid.org/ and can only make it work with 'content-type: application/x-www-form-urlencoded',
--- a/modules/oauth2/lib/DrupalOAuth2Client.inc
+++ b/modules/oauth2/lib/DrupalOAuth2Client.inc
@@ -113,7 +113,7 @@ class DrupalOAuth2Client extends DrupalOAuthClient {
$url .= '?' . drupal_http_build_query($params);
}
$headers = array(
- 'Accept: application/x-www-form-urlencoded',
+ 'content-type: application/x-www-form-urlencoded',
$req->to_header($options['realm']),
);
'content-type: application/x-www-form-urlencoded' is also used in http://tools.ietf.org/html/rfc6749.
Comments