Showing posts with label Authentication. Show all posts
Showing posts with label Authentication. Show all posts

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.

RSS feeds prompting for user/password (login/authentication/credentials)

Hello Friends,

A week ago I added an RSS feed with a username/password for authentication. I use Thunderbird as mail/RSS client. I thought once I entered the authentication details, they are remembered, so I shouldn't be prompted again. However, every time Thunderbird starts up it prompts for username/password for authentication.

Finally I resolved the issue by altering URL in this format:
http://username:password@www.livejournal.com/~blogowner/data/atom?auth=digest
(make sure to substitute the name of an actual blog for "blogowner")

Now I get the login dialog at least once per update.

Hope this helps you to subscribe an RSS feed with a username/password for authentication.

Enjoy!

Find a cool free stuff everyday

Giveaway of the Day

Hiren Bharadwa's Posts

DotNetJalps