Azure Active Directory

Is there anybody out there that has a working solution to authenticate to Azure Active Directory and uses it to call a protected WebApi in Phonegap/Ionic?