When i try to try to post this api https://localhost/openemr/oauth2/default/token i get 400 bad request (this error)


Notice: Key file "file://C:/xampp/htdocs/openemr/sites/default/documents/certificates/oaprivate.key" permissions are not correct, recommend changing to 600 or 660 instead of 666 in C:\xampp\htdocs\openemr\vendor\league\oauth2-server\src\CryptKey.php on line 74
{ "error": "invalid_request", "error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.", "hint": "Authorization code has expired", "message": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed." }

Have you watched this lecture? This gives you the full details of how to do what you are trying to do.

1 Like