using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;

namespace OwinSample.Controllers
{
    public class SecureController: ApiController
    {
        [Authorize]
        public string Get()
        {
            return System.Threading.Thread.CurrentPrincipal.Identity.Name;
            
            
            

        }
    }
}
