[java-client][resteasy] bearer authentication is not working
Created by: jmini
It is not possible to set the token.
In the ApiClient it should be:
diff --git a/<path>/ApiClient.java b/<path>/ApiClient.java
--- a/<path>/ApiClient.java
+++ b/<path>/ApiClient.java
@@ -76,7 +76,7 @@ public class ApiClient {
// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
- authentications.put("bearerAuth", new HttpBasicAuth());
+ authentications.put("bearerAuth", new HttpBearerAuth("bearer"));
authentications.put("httpBasic", new HttpBasicAuth());
// Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications);