Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenId authentification in ASP.NET MVC as a restful service?

Can I offer the authentication, authorization, etc created using "ASP.NET MVC Open Id website" extension.. as a REST service in ASP.NET MVC? How can I create this service(maybe using WCF)? (Please if you can, offer me some examples please).

like image 406
m88 Avatar asked Dec 21 '22 19:12

m88


1 Answers

Yes, you can. OpenID is not about authorizing web services at all. That's what OAuth does. But DotNetOpenAuth does both OpenID and OAuth, so your users can authenticate with OpenID, then authorize RESTful clients via OAuth, and the user story is probably exactly what you're looking for.

There is a project template that shows you exactly how to do it (does it for you, actually) available on the Visual Studio Gallery.

like image 67
Andrew Arnott Avatar answered Dec 25 '22 12:12

Andrew Arnott