I am using Microsoft.Identity.Claim library to conenct to azure and authenticate user. My first idea was to use AcquireTokenByIntegratedWindowsAuth
Microsoft.Identity.Claim
AcquireTokenByIntegratedWindowsAuth