MAJOR: Complete OIDC migration - Remove JWT custom auth, integrate Keycloak OIDC

- Remove quarkus-smallrye-jwt extension
- Delete JwtService, AuthServiceImpl, AuthService interface
- Replace AuthResource with OIDC-based implementation
- Update SecurityService to use SecurityIdentity instead of JWT
- Configure OIDC with Keycloak (bearer-only backend)
- Add PostgreSQL configuration
- Update entity relationships and database migrations
- Remove JWT-related tests and configurations

BREAKING CHANGE: Authentication now requires Keycloak OIDC tokens
This commit is contained in:
dahoud
2025-10-07 20:20:23 +00:00
parent e206f3f288
commit a5206eb7d9
16 changed files with 352 additions and 1255 deletions

View File

@@ -177,6 +177,18 @@ public class Client extends BaseEntity {
@Size(max = 100, message = "La source d'acquisition ne peut pas dépasser 100 caractères")
private String acquisitionSource;
/**
* Date de début de service.
*/
@Column(name = "service_start_date")
private LocalDate serviceStartDate;
/**
* Date de fin de service.
*/
@Column(name = "service_end_date")
private LocalDate serviceEndDate;
/**
* Constructeur par défaut.
*/
@@ -492,6 +504,22 @@ public class Client extends BaseEntity {
this.acquisitionSource = acquisitionSource;
}
public LocalDate getServiceStartDate() {
return serviceStartDate;
}
public void setServiceStartDate(LocalDate serviceStartDate) {
this.serviceStartDate = serviceStartDate;
}
public LocalDate getServiceEndDate() {
return serviceEndDate;
}
public void setServiceEndDate(LocalDate serviceEndDate) {
this.serviceEndDate = serviceEndDate;
}
@Override
public String toString() {
return "Client{" +
@@ -512,17 +540,22 @@ public class Client extends BaseEntity {
* Prospect - pas encore client.
*/
PROSPECT,
/**
* Client actif.
*/
ACTIVE,
/**
* Client inactif.
*/
INACTIVE,
/**
* Client suspendu.
*/
SUSPENDED,
/**
* Ancien client.
*/