I just change InMemoryTokenStore to JdbcTokenStore and use JdbcClientDetailsService.
It was work when curl grant_type with password.
But it failed when reflesh token.
{
"error" : "unauthorized",
"error_description" : "User null does not exist!"
}
I found some message in Spring docs.
"userDetailsService: if you inject a UserDetailsService or if one is configured globally anyway (e.g. in a GlobalAuthenticationManagerConfigurer) then a refresh token grant will contain a check on the user details, to ensure that the account is still active"
I don't know how to check user details for reflesh token with no username and password?
Or what is the correct steps to configure Jdbc?
I just change InMemoryTokenStore to JdbcTokenStore and use JdbcClientDetailsService. It was work when curl grant_type with password. But it failed when reflesh token. { "error" : "unauthorized", "error_description" : "User null does not exist!" } I found some message in Spring docs. "userDetailsService: if you inject a UserDetailsService or if one is configured globally anyway (e.g. in a GlobalAuthenticationManagerConfigurer) then a refresh token grant will contain a check on the user details, to ensure that the account is still active" I don't know how to check user details for reflesh token with no username and password? Or what is the correct steps to configure Jdbc?