Skip to content

Instantly share code, notes, and snippets.

@pwntester
Created November 5, 2012 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwntester/4016635 to your computer and use it in GitHub Desktop.
Save pwntester/4016635 to your computer and use it in GitHub Desktop.
validateCredentials
public HashMap<String, String> validateCredentials(String userName,
String password) throws Exception {
RestClient client = new RestClient("https://" + destinationInfo
+ "/fourgoats/api/v1/login/authenticate");
client.AddParam("userName", userName);
client.AddParam("password", password);
client.Execute(RequestMethod.POST, context);
return LoginResponse.parseLoginResponse(client.getResponse());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment