I got basic authentication to work with userdetails, and userdetailsservice,
but my ultimate goal was to set up oauth2.
When I try to access my rest api with post man I get this response.
My server debug:
It looks like it's trying to do basic authentication for the client id that I put in the request.
I know the PasswordEncoder problem has to do with a wrong password format
but while I was debugging it never used my userdetailsservice so it wasn't even looking at the database.
The client name is my-client-with-secret, so the matching secret is "secret."
I ran a spring demo app with a similar request and it worked fine with even less configuration.
What could be the problem?
Always look on the bright side of life. At least this ad is really tiny:
Devious Experiments for a Truly Passive Greenhouse!