I don't know how to setup the outh module right. I found also the question How do I configure the Services OAuth sub-module? but that answer is very old and ends with a "To be continued..." statement.

So far I get out that I need to generate a context (http://example.org/admin/config/services/oauth/contexts) and a oauth connector (http://example.org/admin/structure/oauthconnector). So I think I setted them correctly but I cannot see where the user may access that.

Could you point me to a tutorial or something like that? I'm not able to find the right words to google that myself. Sorry for that!

  • You didn't mention whether you were looking to use the module as a consumer or a provider. – Bojan Zivanovic Apr 3 '13 at 21:21
  • I want to use it as a consumer. – rekire Apr 3 '13 at 21:36
  • You probably want oauth + http_client then, not oauthconnector. – Bojan Zivanovic Apr 4 '13 at 13:23
  • Can you point me to a tutorial? I'm not sure how to setup that. – rekire Apr 7 '13 at 17:31
  • Try this drupal.org/node/1517824 In general, the module and the subject are both horribly undocumented. – Bojan Zivanovic Apr 7 '13 at 20:23

You can try the Drupal Services, REST Server and 3-legged OAuth tutorial here. Just be pay intention in this part :


This is just for creating the GET request. If you want to create the POST request. It should be something like.

| improve this answer | |

I am not able to add a comment on rekire's turtorial request on http_client oauth2 setup, so i'll just put it here as it also answers the original question.

If you download the http_client module you'll find a readme.org file in /http_client/includes/auth/oauth2/ folder explaining some basic settings by examples from within the wsclient module. I'm using both modules successfully now with basic HTTP authentication. For a new client, just started looking into the oauth2 alternative.

Examples shown are: - server-side flow (authorization endpoint) - user-password flow - client-credentials flow

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.