FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. josh.dura
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 1
    • Controversial 0
    • Groups 0

    josh.dura

    @josh.dura

    2
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    josh.dura Unfollow Follow

    Best 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!

      posted in General Discussion
      J
      josh.dura

    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!

      posted in General Discussion
      J
      josh.dura
    • 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?

      posted in General Discussion
      J
      josh.dura