https://github.com/eukolos/security-server
Spring Security 6
https://github.com/eukolos/security-server
docker graalvm-native-image jwt postgresql spring-boot-3-0-0 spring-security-6
Last synced: 3 months ago
JSON representation
Spring Security 6
- Host: GitHub
- URL: https://github.com/eukolos/security-server
- Owner: Eukolos
- Created: 2023-01-06T20:00:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T15:55:23.000Z (over 3 years ago)
- Last Synced: 2025-03-17T11:50:35.713Z (over 1 year ago)
- Topics: docker, graalvm-native-image, jwt, postgresql, spring-boot-3-0-0, spring-security-6
- Language: Java
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# security-server
Spring Security 6
### 🔨 Run the App
#### Maven
1 ) Download your project from this link shown below
```
git clone https://github.com/Eukolos/security-server.git
```
2 ) Go to the project's home directory shown below
```
cd security-server
```
3 ) Create native image though this command shown below
```
mvn -Pnative spring-boot:build-image
```
4 ) Run the project though this command shown below
```
docker-compose up
```
### Used Dependencies
* Core
* Spring
* Spring Boot 3
* Spring Security 6
* Spring Web
* Jwt
* Jwt Api
* Jwt Impl
* Jwt Jackson
* Postgresql
* Docker
* GraalVM CE Java 17-22.3.0
### Registration
```
POST api/v1/post/auth/register
Accept: application/json
Content-Type: application/json
{
"firstname":"emin",
"lastname":"aksoy",
"email":"emin@gmail.com",
"password": "123456"
}
RESPONSE: HTTP 201 (CREATED)
Content: String (JWToken)
Location header: http://localhost:8080/api/v1/auth/register
```
### Authenticate
```
POST api/v1/post/auth/authenticate
Accept: application/json
Content-Type: application/json
{
"email":"emin@gmail.com",
"password": "123456"
}
RESPONSE: HTTP 200 (OK)
Content: String (JWToken)
Location header: http://localhost:8080/api/v1/auth/authenticate
```
### Authenticate
```
GET /api/v1/demo-controller
Accept: application/json
Content-Type: application/json
AuthHeader: String (Valid JWToken)
RESPONSE: HTTP 200 (OK)
{
"hello"
}
Location header: http://localhost:8080/api/v1/demo-controller
```
### Resource
- [Spring Boot 3 & Spring Security 6 Tutorial](https://www.youtube.com/watch?v=BVdQ3iuovg0&ab_channel=BoualiAli)
- [Spring Security 6 Releases](https://github.com/spring-projects/spring-security/releases)