VueASPNETCore2WebApiAuth
Sample project demonstrating jwt-based authentication with an Vue.js (v2.5.13) frontend and ASP.NET Core 2 WebApi. Includes both local user registration with .NET Core Identity membership and facebook login scenarios.
Install / Use
/learn @mmacneil/VueASPNETCore2WebApiAuthREADME
VueASPNETCore2WebApiAuth
Sample project based on <a href="https://fullstackmark.com/post/16/user-authentication-with-vuejs-aspnet-core-2-and-facebook-login">the blog post</a> demonstrating jwt-based authentication with an Vue.js (v2.5.13) frontend and ASP.NET Core 2 WebApi. Includes both local user registration with .NET Core Identity membership and facebook login scenarios.
Facebook flow
<img src="https://fullstackmark.com/img/posts/16/vue-spa-aspnet-core-web-api-authentication-with-facebook-login-flow.gif" />Email flow
<img src="https://fullstackmark.com/img/posts/16/vue-spa-aspnet-core-web-api-authentication-with-email-signup-flow.gif" />Development Environment
- Sql Server Express 2017 & Sql Server Management Studio 2017
- Visual Studio Code v1.20.1
- Node 8.9.4 & NPM 5.6.0
- .NET Core 2.0 sdk
- Vue CLI => npm install -g @vue/cli https://github.com/vuejs/vue-cli
- Vue 2.5.13
Setup
To build and run the project:
Build and run the backend ASP.NET Core Web API application:
- Restore nuget packages with
backend\AuthWebApi>dotnet restorein thebackend\AuthWebApidirectory. - Create the database with
backend\AuthWebApi>dotnet ef database updatein thebackend\AuthWebApidirectory. - Run the project with
backend\AuthWebApi>dotnet runin thebackend\AuthWebApidirectory.
Build and run the frontend Vue.js application:
- Install npm packages with
frontend>npm installin thefrontenddirectory. - Start the application with the node development serve
frontend>npm run servein thefrontenddirectory.
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 <a href="https://fullstackmark.com/post/16/user-authentication-with-vuejs-aspnet-core-2-and-facebook-login#creating-a-facebook-application">follow the steps detailed on the post</a>.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
