Error when creating JWT Token

前端 未结 1 1186
挽巷
挽巷 2021-01-24 04:46

As I am on my way to switch from using the legacy header authentication method to the JWT Token method, I have used the following example found here.

However, I get the

相关标签:
1条回答
  • 2021-01-24 05:14

    After more investigation, the reason with such an error is that I was not generating the Authorization Code Grant prior to executing my code. Based on the information found here, I had to perform the following HTTPRequest example :

    GET /oauth/auth?
      response_type=token
      &scope=signature
      &client_id=YOUR_INTERGRATOR_KEY
      &state=a39fh23hnf23
      &redirect_uri=http://www.example.com/callback
    

    Once it is approved, then I can run my code successfully. In the end, the initial error message is really misleading (I might argue it could be considered a bug ?).

    0 讨论(0)
提交回复
热议问题