Postman encode different base64 then Java

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?:slight_smile: Any hints?

No question… I send web-app but in configuration I have web_app :open_mouth:

I believe I have the same issue. I am trying to decode a base64 string that was created with and can be successfully decoded using java.util.Base64.getMimeDecoder().decode(data). None of the Postman script examples (such as atob()) base64 decode correctly.

A different post reports fixed in Canary.