These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
[Android] Trying to get access token after successful login
json = new HashMap<>(); // the map is correctly initialized, the forum doesn't work with the actual code json.put("grant_type", "authorization_code"); json.put("code", credential.getAccessToken()); JsonHttpContent content = new JsonHttpContent(new JacksonFactory(), json); HttpRequest request = factory.buildPostRequest(new GenericUrl("https://login.eveonline.com/oauth/token"), content); String auth = OAuthPreferences.getClientID() + ":" + OAuthPreferences.getClientSecret(); request.getHeaders().setAuthorization("Basic " + Base64.encodeToString(auth.getBytes(), Base64.NO_WRAP)); request.getHeaders().setContentType("application/json; charset=utf-8"); response = request.execute();