AuthCreditials cloned = authCreditials.clone();
String serviceUrl = "oauth/access_token";
ResponseDataProvider<Form> provider = new ResponseDataProvider<>();
WebClient client = WebClient.create("https://www.infakt.pl/", Collections.singletonList(provider));
client.path(serviceUrl);
client.header("Accept", "application/json").header("Content-type", "application/json");
OAuthClientUtils.Consumer consumer = new OAuthClientUtils.Consumer(authCreditials.getConsumerKey(), authCreditials.getConsumerSecret());
client.query("x_auth_username", username).query("x_auth_password", password).query("x_auth_mode", "oauth_token");
OAuthClientUtils.Token accessToken = OAuthClientUtils.getRequestToken(client, consumer, new URI("https://www.infakt.pl/oauth/access_token"), null);
cloned.setAccessToken(accessToken.getToken());
cloned.setSecretToken(accessToken.getSecret());