# \[Invalid\] Omniauth callback does not support POST, only GET

**URL:** <https://meta.discourse.org/t/invalid-omniauth-callback-does-not-support-post-only-get/43741>\
**Category:** Bug\
**Created:** [5 Mayo, 2016 15:34 UTC](https://meta.discourse.org/t/invalid-omniauth-callback-does-not-support-post-only-get/43741 "2016-05-05T15:34:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)\
**Post date:** [5 Mayo, 2016 15:34 UTC](https://meta.discourse.org/t/invalid-omniauth-callback-does-not-support-post-only-get/43741/1 "2016-05-05T15:34:53Z")

</div>

Hello all,

I am trying to implement [OAuth2 Basic](https://meta.discourse.org/t/oauth2-basic-support/33879/58) with @dashohoxha’s Drupal plugin [oauth2\_loginprovider](https://www.drupal.org/project/oauth2_loginprovider).

I get an error during the callback:

> [@OAuth2 integration with Drupal](https://meta.discourse.org/t/oauth2-integration-with-drupal/43652/1):
>
> In the DRUPAL system’s apache logs, the following error appears:DRUPAL x.x.x.x - - [04/May/2016:00:19:42 -0000] “GET /oauth2/user/profile HTTP/1.1” 404 4382 “-” “Ruby”

As @dashohoxha [noted](https://www.drupal.org/node/2718525), it appears that the error is related to GET instead of POST:

> [@dashohoxha](#):
>
> In the Drupal logs you have `GET /oauth2/user/profile HTTP/1.1`, but the homepage of oauth2\_loginprovider explicitly says that you need a POST request:
> 
> > clients can access the user profile with a POST request at: [https://server.example.org/oauth2/user/profile](https://server.example.org/oauth2/user/profile) (after being authenticated and having an access\_token).

As I looked, there appears to be no way to change this behaviour via plugin. Any ideas?

tarek : )

---

_[View the full topic](https://meta.discourse.org/t/invalid-omniauth-callback-does-not-support-post-only-get/43741)._
