Dev News

Posts Tagged 'AngularJS'

We are pleased to present below all posts tagged with 'AngularJS'. If you still can't find what you are looking for, try using the search box.

AngularJS and MVC Forms Authentication


It had been a couple of month since I embark in the journey of mixing AngularJS with MVC. Before then, I have utilized AngularJS to render certain view containers here and there. However, for the first time I was after a fully functional AngularJS app, yet with MVC server side. I wanted to use the fully functional Form Authentication MVC template, and make an AngularJS application ready to go with form authentication in no time.

This task introduced two main challenges. First, we have to make the client side fully aware of the authentication and have Angular preserve state – so even as the page refreshes Angular shall response as authenticated. This is inherit function in a MVC Razor app but not necessarily in an Angular application. Secondly, client side authentication – No-Oauth - is not the most secure, we could end up with a cross site request forgery attack. So what I needed was an Anti-Forgery Token, MVC Form Authentication AngularJS app.

About This Posts!

Development News that fit my interest - new on the stack such as Plugins, JavaScript libraries, Third Party Development Products and much more. 



Get the latest updates in your email box automatically.