Implementing token based authentication for a project having both Web APIs and regular MVC controllers

Viewed 11832

I have a project that has both regular MVC controllers with Views as well as Web APIs. I have implemented Forms authentication. This protects both my Web API as well as my MVC controllers. However since cookies are not supported by Mobile browsers I am looking for implementing an alternate token based authentication. Following questions

1) Is there any way to use token based authentication for both Web API as well as regular MVC controllers ?

2) Is there any way to pass bearer token automatically by the browser instead of manually putting it in request headers ?

3) How can I include authorization information in the bearer token ?

1 Answers
Related