Spring oauth2 refresh token - Cannot convert access token to JSON

后端 未结 5 891
长发绾君心
长发绾君心 2021-01-18 03:46

I\'m trying to use a refresh token in a Spring OAuth application without success. The system will issue a refresh token on a password grant:

  {
  \"access_t         


        
5条回答
  •  隐瞒了意图╮
    2021-01-18 04:23

    So it looks like the issue was an invalid refresh_token format. Due to my config, what the auth server was expecting was a valid JWT, whereas I was sending it a plain bearer token. Hence the error message 'cannot convert token to JSON'.

    Incidentally, I found this document useful in understanding how all the parts of Spring OAuth fit together, which led me to figuring out what was going on here:

    https://github.com/spring-projects/spring-security-oauth/blob/master/docs/oauth2.md

提交回复
热议问题