Skip to content

sollygit/MockMe.API

Repository files navigation

JWT Auth Demo (ASP.NET Core + Angular)

This repository demos an Angular SPA and an ASP.NET Core web API application using JWT auth, and an integration testing project for a set of actions including login, logout, refresh token, impersonation, authentication, and authorization.

https://github.com/dotnet-labs/JwtAuthDemo

Medium Articles

  1. JWT Auth in ASP.NET Core

  2. JWT Authentication in Angular

Solution Structure

This repository includes two applications: an Angular SPA in the angular folder, and an ASP.NET Core web API app in the webapi folder. The SPA makes HTTP requests to the server side (the webapi app) using an API BaseURL https://localhost:44389. The API BaseURL is set in the environment.ts file and the environment.prod.ts file, which can be modified based on your situation.

  • angular The SPA application demonstrates JWT authorization in the front-end.
  • webapi The ASP.NET Core web API app is served by Kestrel on Docker. This app has implemented HTTPS support.

About

Mock JWT Auth API consumed by a SPA in Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages