Spring Security 6
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
- Core
- Spring
- Spring Boot 3
- Spring Security 6
- Spring Web
- Jwt
- Jwt Api
- Jwt Impl
- Jwt Jackson
- Spring
- Postgresql
- Docker
- GraalVM CE Java 17-22.3.0
POST api/v1/post/auth/register
Accept: application/json
Content-Type: application/json
{
"firstname":"emin",
"lastname":"aksoy",
"email":"[email protected]",
"password": "123456"
}
RESPONSE: HTTP 201 (CREATED)
Content: String (JWToken)
Location header: http://localhost:8080/api/v1/auth/register
POST api/v1/post/auth/authenticate
Accept: application/json
Content-Type: application/json
{
"email":"[email protected]",
"password": "123456"
}
RESPONSE: HTTP 200 (OK)
Content: String (JWToken)
Location header: http://localhost:8080/api/v1/auth/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