Fixed authentication mechanism for api.