Skip to content

Commit 4e25a3e

Browse files
authored
docs: Update README.md
1 parent 8ee0e3d commit 4e25a3e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
# spring-security-jwt
2-
31
This repository contains an example Spring project implementing authentication and authorization using Spring Security with JWT. The project provides a set of APIs for user registration, login, and role-based access control.
42

53
## Features
64

75
- **User Registration**: Allows new users to sign up by providing necessary details.
86
- **User Login**: Authenticates users and provides a JWT token for subsequent requests.
97
- **Role-Based Access Control**: Access control for specific endpoints based on user roles (`MASTER` and `USER`).
8+
- **Default Admin Account**: A pre-configured `admin` account is available for testing.
9+
10+
## Default Admin Account
11+
12+
You can use the following default admin account to test admin-specific features:
13+
- **Username**: `admin`
14+
- **Password**: `adminpassword`
15+
16+
> Note: The password is hashed using `passwordEncoder` before storage.
1017
1118
## APIs
1219

0 commit comments

Comments
 (0)