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.
    • danD
      dan
      last edited by

      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
      • danD
        dan
        last edited by

        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

          This post is deleted!
          P 1 Reply Last reply Reply Quote 0
          • P
            pramodchoudhary5544 @pramodchoudhary5544
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post