Added authentication API.