I try to use a api with OAuth2. With Postman it works. But now I try to write this in Java. I don't have spring boot, it is a simple Maven project The only example I found was this
But it seems it only works with base authentication.
My question is, is it possible to do a Oauth2 with okhttp? Or is it the wrong library?