REST API to authenticate users from webserver