Exemplo n.º 1
0
        public async Task MSALTokenExample()
        {
            var client = new GraphClient(clientId, tenantId, new string[] { "user.read" });

            var token = await client.GetAccessToken();

            var httpClient = new HttpClient();

            httpClient.BaseAddress = new Uri("https://localhost:44353");

            var res = await httpClient.GetAsync("Ping");
        }