Need to create oAuth2 token manually without password

前端 未结 3 497
花落未央
花落未央 2021-02-03 13:12

I have implemented oAuth2 with spring security and it is working fine for me. But Now I want to create user token from back-end manually without password. Because I have only us

3条回答
  •  孤独总比滥情好
    2021-02-03 13:45

    Most of the answers above are correct, but the fifth line should be changed to

    authorizationParameters.put("grant_type", "password")
    

提交回复
热议问题