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
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.
angularThe SPA application demonstrates JWT authorization in the front-end.webapiThe ASP.NET Core web API app is served by Kestrel on Docker. This app has implemented HTTPS support.