Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjinmyeong authored Nov 10, 2024
1 parent 8ee0e3d commit 4e25a3e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# spring-security-jwt

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.

## Features

- **User Registration**: Allows new users to sign up by providing necessary details.
- **User Login**: Authenticates users and provides a JWT token for subsequent requests.
- **Role-Based Access Control**: Access control for specific endpoints based on user roles (`MASTER` and `USER`).
- **Default Admin Account**: A pre-configured `admin` account is available for testing.

## Default Admin Account

You can use the following default admin account to test admin-specific features:
- **Username**: `admin`
- **Password**: `adminpassword`

> Note: The password is hashed using `passwordEncoder` before storage.
## APIs

Expand Down

0 comments on commit 4e25a3e

Please sign in to comment.