@joshua Nope, was able to figure it out. I was sending the request body in JSON format instead of form URL encoded. Sorry for the late response here!
J
Best posts made by josh.dura
-
RE: Local oauth2/token endpoint returns missing grant_type error
Latest posts made by josh.dura
-
RE: Local oauth2/token endpoint returns missing grant_type error
@joshua Nope, was able to figure it out. I was sending the request body in JSON format instead of form URL encoded. Sorry for the late response here!
-
Local oauth2/token endpoint returns missing grant_type error
I am getting the following error when trying to hit the /oauth2/token endpoint with the code given from the authorize redirect:
{ error: 'invalid_request', error_description: 'The request is missing a required parameter: grant_type', error_reason: 'missing_grant_type' }
Below is the data I am passing through in the POST call (redacted secret of course):
{ "client_id":"<redacted>", "client_secret":"<redacted>", "code":"_IGmWdtvD400g5Gq9t8kkyMzgurk2YZJecB-Jf7XX1E", "grant_type":"authorization_code", "redirect_uri":"http://localhost:5173" }
As far as I can tell, I am passing everything through correctly. I have tried enabling debug mode on the application in the local docker compose container, but I never see any event logs coming through. Any suggestions?