Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom oAuth client in ASP.NET MVC 5

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?

like image 209
Vasiliy Mazhekin Avatar asked Nov 02 '22 06:11

Vasiliy Mazhekin


1 Answers

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

like image 118
Shawinder Sekhon Avatar answered Nov 16 '22 08:11

Shawinder Sekhon