This post provides step by step instructions: https://bitbucket.org/david.antaramian/so-21662778-spa-authentication-example/overview
On Monday, February 10, 2014 3:51:05 PM UTC+2, Jake Peteman wrote: > > Does anyone have any tips on how to use .Net Identity authentication with > AngularJS? I'm a complete newbie to both Angular and .Net that is using the > Hot Towel Angular SPA Template ( > https://github.com/johnpapa/HotTowel-Angular ) as a basis for an > application. The .Net views are easily configurable to redirect to a login > page with the [Authorize] attribute, but I don't know how to integrate this > at all with the Angular front-end. The easiest solution seems like it would > be to somehow redirect the main Angular page (index.html) to the .Net Razor > home page if there's no user logged in. I don't really care if this login > page is in a different layout, and I don't need/want to use razor views for > anything else but I want the main app to be SPA. "Great" security is not > really that important either, since this application will mostly be used > internally; for now I just need something that works OK. > > Many thanks! > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
