we are using ADAL to acquire tokens by a service account silently (no prompt, no redirect). This is our sample code:
var clientId = "";
var tenantDomain = "";
var userName = "";
var password = "";
var context = new AuthenticationContext(string.Format("https://login.windows.net/{0}", tenantDomain));
var credential = new UserPasswordCredential(userName, password);
var result = await context.AcquireTokenAsync("https://management.core.windows.net/", clientId, credential);
How can I acquire tokens using MSAL?