我使用的是AuthenticationContext.AcquireToken的重载,它接受一个ClientCredential对象。AuthenticationContext ac = new AuthenticationContext("https://login.windows.net/thommmondago.onmicrosoft.com");
ClientCredentialcc = new ClientCredential("41151135-61b8-40f4-af
string authenticationKey = "<your authentication key for the application>";var context = new AuthenticationContext("https://login.windows.net/" + tenantID);
ClientCredentialcc = new Client