feat: add DCB User Service API - Authentication system with KEYCLOAK - Modular architecture with services for each feature

This commit is contained in:
diallolatoile 2025-11-03 18:56:40 +00:00
parent 2409c279f3
commit d586552944
4 changed files with 5 additions and 10 deletions

View File

@ -134,7 +134,7 @@ export class MenuService {
{ {
label: 'Log Out', label: 'Log Out',
icon: 'tablerLogout2', icon: 'tablerLogout2',
url: '#', url: '/auth/logout',
class: 'fw-semibold text-danger' class: 'fw-semibold text-danger'
}, },
]; ];

View File

@ -32,15 +32,10 @@ export const userDropdownItems: UserDropdownItemType[] = [
{ {
isDivider: true, isDivider: true,
}, },
{
label: 'Lock Screen',
icon: 'tablerLock',
url: '#',
},
{ {
label: 'Log Out', label: 'Log Out',
icon: 'tablerLogout2', icon: 'tablerLogout2',
url: '#', url: '/auth/logout',
class: 'fw-semibold', class: 'fw-semibold',
}, },
] ]

View File

@ -8,7 +8,7 @@ import { environment } from '@environments/environment';
@Injectable({ providedIn: 'root' }) @Injectable({ providedIn: 'root' })
export class DcbDashboardService { export class DcbDashboardService {
private http = inject(HttpClient); private http = inject(HttpClient);
private apiUrl = `${environment.localServiceTestApiUrl}/dcb-dashboard`; private apiUrl = `${environment.iamApiUrl}/dcb-dashboard`;
// Données mockées pour le développement // Données mockées pour le développement
private mockData: DcbDashboardData = { private mockData: DcbDashboardData = {

View File

@ -1,7 +1,7 @@
export const environment = { export const environment = {
production: false, production: false,
localServiceTestApiUrl: "https://backoffice.dcb.pixpay.sn/api/v1", localServiceTestApiUrl: "http://localhost:4200/api/v1",
iamApiUrl: "https://api-user-service.dcb.pixpay.sn/api/v1", iamApiUrl: "http://localhost:3000/api/v1",
dcbApiUrl: 'https://api.paymenthub.com/v2', dcbApiUrl: 'https://api.paymenthub.com/v2',
// Configuration DCB // Configuration DCB