Skip to content

ptrotter1/AngularASPNETCore2WebApiAuth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AngularASPNETCore2WebApiAuth

Angular Azure AD Integration is planned, but not yet implemented.

References

https://fullstackmark.com/post/13/jwt-authentication-with-aspnet-core-2-web-api-angular-5-net-core-identity-and-facebook-login

Development Environment

  • SQL Server Developer Edition 2017
  • Visual Studio Code
  • Node 8.9.4 & NPM 5.6.0
  • .NET Core 2.1 Preview SDK
  • Angular CLI -> npm install -g @angular/cli

Setup

To build and run the project using the command line:

  1. Install npm packages with npm install in the src/ClientApp directory.
  2. Restore nuget packages with dotnet restore in the src directory.
  3. Create the database with dotnet ef database update in the src directory.
  4. Run the project with dotnet run in the src directory.
  5. Point your browser to https://localhost:5001.

N.B: If using Postman to hit the WebAPI endpoints, make sure to disable SSL Certificate Validation in Setting or you will see no response back from the endpoint.

About

Sample project demonstrating jwt-based authentication with an Angular (v5.2.1) frontend and ASP.NET Core 2.1 preview1 WebApi. Includes local user registration with .NET Core Identity membership and (planned) Azure AD scenarios.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 79.2%
  • TypeScript 11.2%
  • HTML 5.7%
  • JavaScript 2.1%
  • CSS 1.8%