We would like some code samples on how to authenticate a HTML5/CSS3/Javascript client-based application with Dynamics CRM 2016 Online to access its Web API services to create leads.
There only a C# sample on how to do that for a server/daemon application.
We would like to know how we could use low-level functions in ADAL js to perform non-interactive authentication to Azure AD, obtain the tokens for requests to Dynamics CRM 2016 Online Web API services.
Any help is appreciated.
Thank you.