Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
532 changes: 498 additions & 34 deletions README.md

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
services:

postgres:
container_name: postgres-sql
image: postgres
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: jwt_security
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
Expand Down
45 changes: 0 additions & 45 deletions http/change-password.http

This file was deleted.

15 changes: 8 additions & 7 deletions http/http-test.http
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
### Register User
POST http://localhost:8080/api/v1/auth/register
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbkBtYWlsLmNvbSIsImlhdCI6MTc2MDk1OTAxMiwiZXhwIjoxNzYxMDQ1NDEyfQ.XnnTOk-XOyPXG0oKXJGJXqKhfV617HF9dkjgk7J2wq0

{
"firstname": "Ali",
"lastname": "Bouali",
"email": "alibou21@mail.com",
"password": "password",
"firstname": "Oleksii",
"lastname": "Morenets",
"email": "omore@mail.com",
"password": "password$123",
"role": "ADMIN"
}

> {% client.global.set("auth-token", response.body.access_token); %}
> {% client.global.set("access-token", response.body.access_token); %}

### Query the Demo endpoint
GET http://localhost:8080/api/v1/demo-controller
Authorization: Bearer {{auth-token}}
GET http://localhost:8080/api/v1/demo
Authorization: Bearer {{access-token}}
44 changes: 0 additions & 44 deletions http/jpa-auditing.http

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.4</version>
<version>3.3.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.alibou</groupId>
Expand Down
48 changes: 0 additions & 48 deletions src/main/java/com/alibou/security/SecurityApplication.java

This file was deleted.

This file was deleted.

120 changes: 0 additions & 120 deletions src/main/java/com/alibou/security/auth/AuthenticationService.java

This file was deleted.

20 changes: 0 additions & 20 deletions src/main/java/com/alibou/security/auth/RegisterRequest.java

This file was deleted.

Loading