This is solution for easy start develop website use Angular and Web API Core 2.0 service with OAuth Authentication.
This solution devlopment for ASP.Net Core 2.0 framework and there is the same project for framework ASP.Net (not Core), you can download it here,
For authentication uses OAuth Bearer Token and implements Refresh Tokens. The backend API is built using ASP.NET Web API Core 2.0, JSON Web Tokens, ASP.NET Identity and Entity Framework.
Solution devided on 4 projects:
- Ordes - main project, uses Angular with WebPack and ASP.Net Core 2.0
- API - REST Service, uses ASP.NET Web API Core 2.0
- DAL - Data Access Layer, uses Entity Framework Core.
- BLL - Business Logic Layer
After download and open need refresh node modules in project Orders. For easy uses WebPack install Web Pack Task Runner.
For run front-end unit-tests uses Karma, Jasmine and Gulp.
For Database point you connection string in project API in file appsettings.json. After first run application, database will be create in memory automaticaly for testing service.
For authorizarion via social networks need point your tokens for google and facebook in project Api, but you can use mine, if its still will be work.