I use oauth2 with the postman. I defined secret and client. And all the time I get “Unauthorized”. So I checked what is wrong on the server side. I figured up that Postman sends different Base64 the I generate with java.
String authorization = clientId + ":" + clientSecret;
return "Basic " + Base64Utils.encodeToString(authorization.getBytes(StandardCharsets.UTF_8));
And for: clientId=web-app and clientSecret=changeit
Postman generate: d2ViLWFwcDpjaGFuZ2VpdA==
Java generate : d2ViX2FwcDpjaGFuZ2VpdA==
I use java 10, Postman: v6.3.0 on ubuntu 18.04 lts.
So where is the problem? Any hints?
Edit.
No question… I send web-app but in configuration I have web_app