json - ASP.NET Forms Authentication plus Basic Authentication -


so, if want make single page web application, can set website forms authentication, create accounts, authorize ajax request, etc forms authentication. user logs in, browser gets auth cookie, browser makes ajax/json request auth cookie, server determines , sends ajax/json response, , right world.

similarly, if want make mobile app, can set rest service. rest service uses basic authentication. user logs in, user gets authorization token response header, app sends restful/json request authorization token request header, server determines am, , sends restful/json response, , right world.

but, want same asp.net site/code/webconfig same thing identical requests? sounds it's virtually impossible. missing something?


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -