I want to implement role based login using oauth with facebook, twitter, google etc. It will only be using oauth and will have a role system. Not the default template with the usual registration and login. Seems like dot net open auth will help withe initial stuff, but i can find no good example of using or extending it. Can someone explain how to use dotnet open auth from scratch and how to get extra info with it?
OAuth provides client applications a "secure delegated access" to server resources on behalf of a resource owner. It specifies a process for resource owners to authorize third-party access to their server resources without sharing their credentials (from the Wikipedia). OAuth stands for Open Authorization.
When you create an MVC 4 web application with the Internet Application template, the project is created with a file named AuthConfig. cs in the App_Start folder. The AuthConfig file contains code to register clients for external authentication providers.
~/App_Start/AuthConfig.cs
fileFor more information about OAuth integration I invite you to head to the DotNetOpenAuth
site, go through the documentation
, download and play with the samples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With