Skip to content

Instantly share code, notes, and snippets.

@frankhu-2021
Last active November 7, 2018 22:13
Show Gist options
  • Save frankhu-2021/ba87de35d6a9393f550bc3f578955629 to your computer and use it in GitHub Desktop.
Save frankhu-2021/ba87de35d6a9393f550bc3f578955629 to your computer and use it in GitHub Desktop.
private static string resourceUri = "https://graph.microsoft.com"; //Insert your resource here, I will keep this as the MSFT Graph resource
private static string clientId = "<your-client-id>"; // Insert your Client ID here
private static string redirectUri = "<your-redirect-uri>"; // Insert your redirect URI here (Reply URL of AAD Application Registration)
private static string authority = "https://login.microsoftonline.com/";
private static string tenantID = "<your-tenant-id>"; // Insert Your Tenant ID here
private static AuthenticationContext authContext = null;
private static AuthenticationResult result = null;
private static HttpClient httpClient = new HttpClient();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment