I’m currently in the process of getting Odoo (the client application) to perform Oauth2 flow with Hydra and my consent application. I’m able to get past the consent page and I get an error like the following:
time="2020-03-23T19:51:30Z" level=info msg="started handling request" method=GET remote="<REMOTE_ADDR>" request="/oauth2/token?access_token=<ACCESS_TOKEN>"
time="2020-03-23T19:51:30Z" level=info msg="completed handling request" measure#hydra/public: https://<HYDRA_PUBLIC_URL>/.latency=124480 method=GET remote="<REMOTE_ADDR>" request="/oauth2/token?access_token=<ACCESS_TOKEN>" status=405 text_status="Method Not Allowed" took="124.48µs"
405 - Method Not Allowed
I also see an error on the client side of the application.
Under the REST API documentation for Hydra, I see that it only allows POST methods to /oauth2/token
with either headers or a body. I’m still somewhat new to the Oauth2 flow, so maybe this is a valid request from the client application (that is not documented in Hydra) that I simply do not understand. Should I try to reform this request to a POST request from the client application? Maybe it’s an error with my client configuration?