Skip to content

ASP.NET Core / Angular template with complete register, login, role management using the JWT Bearer token authorization and Cross-Origin Resource Sharing (CORS) policy enabled

License

Notifications You must be signed in to change notification settings

stefanMinch3v/AspAngularTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AspAngularTemplate

Table:

  • RESTful API Backend using ASP.NET Core 2.2 Web API and MVC for roles.
  • Angular 6.
  • Database - Entity Framework Core.
  • Jwt token authorization using Bearer schema.
  • AutoMapper.

Structure

  • EF databse - Code First.
  • Data access using Services.
  • AutoMapper (data to view models).
  • CORS policty enabled in the Startup.cs (for POST, PUT, DELETE, GET).
  • Jwt token - user's roles, username and email.
  • Simple "item" model used for full CRUD APIs.
  • Logger messages on the console.
  • Database auto migrations.
  • Angular lazy loading routes, services, guards and http interceptors.

Login

Login with username and password

  • Default administrator
    • Username: admin
    • Password: admin12
  • Default user
    • Username: test-user
    • Password: test12

Roles

  • Default roles are: Admin, Test, Test2

More info

For the sake of simplicity in the angular project all the successful and error messages are been logged on the console.

About

ASP.NET Core / Angular template with complete register, login, role management using the JWT Bearer token authorization and Cross-Origin Resource Sharing (CORS) policy enabled

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published