User tarek reports an issue implementing OAuth2 Basic with a Drupal plugin, where the Discourse callback sends a GET request instead of the required POST request for fetching user profiles. This mismatch causes a 404 error in Drupal logs. tarek identified the root cause in discourse-oauth2-basic/plugin.rb, where the standard open-uri library is used, which only supports GET requests. Community members suggested using HTTParty or Net::HTTP to enable POST capabilities. tarek plans to report this limitation to the OAuth2 Basic project and asks how to close the topic.
From trying to debug this on IRC, it appears that:
[12:31:56] <jmarinelli> open-uri only supports GET
[12:32:42] <jmarinelli> look into HTTParty, or Net::HTTP if you don't want to add dependencies
[12:32:55] <havenwood> You could use Net::HTTP from the stdlib but it's a bit unwieldy. I'd suggest HTTP.rb for a gem: https://github.com/httprb/http#readme
I will post this all to the OAuth2 Basic site. How do I close this topic?