Skip to content

Commit 801cf64

Browse files
committed
update readme
1 parent 4b7efe0 commit 801cf64

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
# JWT Auth Demo
1+
# JWT Auth Demo (Angular + ASP.NET Core)
22

3-
This repository demos 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.
3+
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.
44

55
## Medium Articles
66

7-
- [Using JWT in ASP.NET Core](https://codeburst.io/using-jwt-in-asp-net-core-148fb72bed03)
7+
1. [JWT Auth in ASP.NET Core](https://codeburst.io/jwt-auth-in-asp-net-core-148fb72bed03)
88

9-
In this article, I will show you how to implement an ASP.NET Core web API application using JWT authentication and authorization.
9+
In this article, I will show you how to implement an ASP.NET Core web API application using JWT authentication and authorization.
10+
11+
1. [JWT Authentication in Angular](https://codeburst.io/jwt-authentication-in-angular-48cfa882832c)
12+
13+
In this article, we will build a simple app using Angular. We will implement an `AuthService` class to handle login, logout, and refresh token processes, as well as operations for localStorage key-value pairs. We will create a `JwtInterceptor` class to add JWT Bearer token to the HTTP request headers, and an `UnauthorizedInterceptor` class to redirect the user to the login page if an HTTP status code 401 is received. We will use an `AuthGuard` to prevent unauthenticated user from visiting the application pages.
14+
15+
## Demo
16+
17+
![jwt demo](./jwt-angular-app.gif)
1018

1119
## Solution Structure
1220

jwt-angular-app.gif

330 KB
Loading

0 commit comments

Comments
 (0)