Posts

Showing posts from January, 2019

Oauth 2.0 Authorization using OWIN OAuthon ASP.NET Web API

This solution was developed by Ole , it can be found in his blog https://olepetterdahlmann.com/2016/08/08/implement-an-oauth-2-0-authorization-server-using-owin-oauth-middleware-on-asp-net-web-api/ 1) Create an empty Web project with "Web API" as template and "No Authentication" as authentication mechanism 2) Install the below dlls Microsoft.AspNet.WebApi.Owin Microsoft.Owin.Host.SystemWeb Microsoft ASP.NET Identity Owin Microsoft.Owin.Security.Cookies Microsoft.AspNet.Identity.Owin Microsoft.Owin.Security.OAuth Update Newtonsoft.Json" version="12.0.1" 3) Package Json should be as below Package.config set up will be as below <package id="Microsoft.AspNet.Identity.Core" version="2.2.2" targetFramework="net461" /> <package id="Microsoft.AspNet.Identity.Owin" version="2.2.2" targetFramework="net461" /> <package id="