Openemr default auth token api

On demo version I’m getting this error where as on my server I’m getting bad request error can anyone help me to get this

It worked on the demo server as it is case that we only have 10 seconds to make the token request after receiving the authorization code. But on my server still it shows bad request.


unable to login using my username password nothing happens here. Can anyone help me to get grants after login.

What do your server logs show for your server? Have you turned on the debug logging in the globals?

Hi Stephen
Yes I have enabled the logging in Globals


as soon as I login into https://IP/oauth2/default/provider/login
it gives me a blank page
https://IP/logs/oauth2/default/scope-authorize-confirm
The requested URL was not found on this server.
What I’m missing here

hi @Rashi ,
At the bottom of that globals screen set the System Error Logging Options to Debug Logging (this will produce a very large amount of api debugging information to the php error log.

yes done @brady.miller


Now where I can see the logs ?
/var/log/apache2/error.log says this

What is missing here?

Now It worked when I enabled Enable OAuth2 Password Grant in Adminstration->Globals