Added option for a custom authorisation method (private_auth_method) to support authentication of users from custom web server