• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

405 when running client.exchangeOAuthCodeForAccessTokenUsingPKCE

Scheduled Pinned Locked Moved
Q&A
pkce error
0
4
4.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dan
    last edited by 9 Jun 2021, 13:00

    I did the following tutorials using fastify.
    https://fusionauth.io/docs/v1/tech/5-minute-setup-guide/

    The login itself is working fine, but when I run client.exchangeOAuthCodeForAccessTokenUsingPKCE I get a 405 error.

    There is no problem if it is executed by express as in the sample, but it fails when using fastify.

    2021-03-18 4:26:15.120 AM WARN  org.primeframework.mvc.action.DefaultActionMappingWorkflow - The action class [io.fusionauth.app.action.oauth2.TokenAction] does not have a valid execute method for the HTTP method [GET]
    

    ported over from https://github.com/FusionAuth/fusionauth-typescript-client/issues/45

    --
    FusionAuth - Auth for devs, built by devs.
    https://fusionauth.io

    1 Reply Last reply Reply Quote 0
    • D
      dan
      last edited by 9 Jun 2021, 13:01

      For anybody having this issue, it turned out I had written my URL wrong: http://company.fusionauth.io for example instead of https://company.fusionauth.io. The redirect to https:// caused the error.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • P
        pramodchoudhary5544
        last edited by 14 Jun 2021, 15:55

        This post is deleted!
        P 1 Reply Last reply 14 Jun 2021, 16:14 Reply Quote 0
        • P
          pramodchoudhary5544 @pramodchoudhary5544
          last edited by 14 Jun 2021, 16:14

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post