Skip to content

Instantly share code, notes, and snippets.

View juunas11's full-sized avatar

Joonas Westlin juunas11

View GitHub Profile
@juunas11
juunas11 / Program.cs
Created February 14, 2017 18:06
Calling ASP.NET Web API protected by Azure AD from a console app
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
namespace ConsoleApplication2
{
class Program
{