I am starting a ASP.NET project soon that will require user authentication to access certain parts of the site. There will be multiple sites requiring this authentication system including desktop applications.
I was wondering, is there a way to essentially create a global authentication system using the MVC4 Web API? I don't mean authenticate the user to access the API, but to allow users to retrieve an authentication token to access the site via the web-api.
Sorry if this seems a bit confusing, I'm still trying to figure out the best method to use.
Have a look at Thinktecture. They have created a token provider (with a client to show how to use it). I think this is what you're looking for.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.