Skip to content

Instantly share code, notes, and snippets.

@harshadura
Created July 15, 2016 09:31
Show Gist options
  • Save harshadura/684a5187efa5eb0733f2475a055613b4 to your computer and use it in GitHub Desktop.
Save harshadura/684a5187efa5eb0733f2475a055613b4 to your computer and use it in GitHub Desktop.
@RequestMapping("/authorize")
public String authorize(@RequestParam(value="username", defaultValue="username") String username,
@RequestParam(value="password", defaultValue="password") String password) {
FirebaseHandler firebaseHandler = new FirebaseHandler(mFirebaseDatabaseReference, new FirebaseHandler.FirebaseServiceListener() {
@Override
public void onSuccessResponseReceived(Object response) {
return ; // << error
}
@Override
public void onErrorResponseReceived(Object error) {
}
}, username, password);
firebaseHandler.submitRequest();
return "response";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment