mmacneil/AngularASPNETCore2WebApiAuth
关于
示例项目,演示如何在 Angular(v5.2.1)前端和 ASP.NET Core 2 WebApi 中实现基于 JWT 的身份验证。涵盖使用 .NET Core Identity 注册本地用户,以及通过 Facebook 登录的场景。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文AngularASPNETCore2WebApiAuth
Sample project based on the blog post demonstrating jwt-based authentication with an Angular (v5.2.1) frontend and ASP.NET Core 2 WebApi. Includes both local user registration with .NET Core Identity membership and facebook login scenarios.
Facebook flow

Email flow

Development Environment
- Sql Server Express 2017 & Sql Server Management Studio 2017
- Runs in both Visual Studio 2017 & Visual Studio Code
- Node 8.9.4 & NPM 5.6.0
- .NET Core 2.0 sdk
- Angular CLI ->
npm install -g @angular/clihttps://github.com/angular/angular-cli
Setup
To build and run the project using the command line:
- Install npm packages with
src>npm installin thesrcdirectory. - Restore nuget packages with
src>dotnet restorein thesrcdirectory. - Create the database with
src>dotnet ef database updatein thesrcdirectory. - Run the project with
src>dotnet runin thesrcdirectory. - Point your browser to http://localhost:5000.
Of course, you can also run it from either Visual Studio 2017 or Visual Studio Code with the IDE handling most of the steps above. If you have issues, try running the above steps from the command line to ensure things are setup properly.
Facebook App Setup
You're free to use the demo facebook app Fullstack Cafe that the project is already configured with. To setup and use your own application follow the steps detailed on the post.
探索相关项目
加载中…