Custom oAuth client in ASP.NET MVC 5

asp.net-mvc-5, oauth-2.0

Solution

Mvc5 authentication is built on Katana (OWIN components by Microsoft). Check following article for detailed overview of Authentication changes in MVC5.

https://www.simple-talk.com/dotnet/.net-framework/creating-custom-oauth-middleware-for-mvc-5

Problem

I am confused about how to build the custom oauth client in asp.net mvc 5. In mvc 4 it was a simple operation. Implementing custom class from IAuthenticationClient. And then in AuthConfig.cs call the function OAuthWebSecurity.RegisterClient. But how it can be done in mvc 5?

Original source