static App()
        {
            string authority = $"https://login.microsoftonline.com/{Tenant}";

            _clientApp = new PublicClientApplication(ClientId, authority, TokenCacheHelper.GetUserCache());
        }
 static App()
 {
     // the common endpoint (supports AAD and MSA) doesn't permit integrated auth
     // you must use either a tenant (domain or GUID) or the AAD generic endpoint (organizations)
     //_clientApp = new PublicClientApplication(ClientId, "https://login.microsoftonline.com/common", TokenCacheHelper.GetUserCache());
     _clientApp = new PublicClientApplication(ClientId, "https://login.microsoftonline.com/organizations", TokenCacheHelper.GetUserCache());
 }
Esempio n. 3
0
 static App()
 {
     _clientApp = new PublicClientApplication(ClientId, "https://login.microsoftonline.com/common", TokenCacheHelper.GetUserCache());
 }
Esempio n. 4
0
 static App()
 {
     _clientApp = new PublicClientApplication(ClientId, ConfigurationSettings.AppSettings["authority"], TokenCacheHelper.GetUserCache());
 }