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
Most of the answers above are correct, but the fifth line should be changed to
authorizationParameters.put("grant_type", "password")