An open API service indexing awesome lists of open source software.

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

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)