Wednesday, October 7, 2015

Example of an SPA with a login screen that uses AngularJS and connects to ASP.NET Web API 2

Question:

I would like to create a new AngularJS, Web API Single page application. Does anyone have any examples that show how I can set up a user login screen that connects to a WEB API controller for a simple login (no need for google/facebook login etc) that uses ASP.NET Identity and without the need for user registration.


Answer:
There are many answers are available on stack-overflow. But after a bunch of googling within 2 weeks of mine, I have found below mentioned two articles very useful for me. So I though to share the same with you.

  1. http://stackoverflow.com/a/21842533
  2. https://bitbucket.org/david.antaramian/so-21662778-spa-authentication-example/overview

Hope this can save someone's 2 weeks.

Enjoy.

No comments:

Find a cool free stuff everyday

Giveaway of the Day

Hiren Bharadwa's Posts

DotNetJalps