JayChase / Angular.Net.SecureStarter

An AngularJS starter kit for ASP.NET which implements authentication and authorization with ASP.NET Identity 2.0.0.
MIT License
18 stars 7 forks source link

#Secure Starter

An AngularJS starter kit for ASP.NET which implements authentication and authorization (ASP.NET Identity 2.0.0) to provide:

Getting started

During the database initialization (ApplicationDbInitializer) two roles are created:

A user called Administrator is also created with the password 'Administrator55$' and added to both roles. Edit the initializer if you need to change this, or add more roles and users.

To get familiar with configuring security on the SPA side of things see the following wiki pages:

There are a few other features to make life a bit easier which you can read about here.

Installation

You can fork or download this repo.

It is also available as a Nuget package (you can find it here). In Visual Studio create a new Web API project with the authentication option set to 'individual user accounts'. Then either install the package using the package manager or from to install from the Package Manager Console enter the following command:

Install-Package Angular.SecureStarter

Current status

The starter kit currently implements the basic authentication functionality equivalent to that found in the Visual Studio 2013 ASP.NET 'Single Page Application'. Future enhancements will (hopefully) include: