...
If you donot want to get user or location details and just need to check whether credentials are valid or not, send http request with parameters "username" and "password" to http://yourServer/security/is-authenticated . For demo http://46.101.51.199:8080/oweb/security/is-authenticated?username=YOURUSER&password=YOURPW .
The response would return with a true of false with Http OK code incase of valid credentials and otherwise a Http code UNAUTHORIZED would be returned.