Commit Graph
13 Commits
Author SHA1 Message Date
nessar 8603b98714 feat: manage tenants and leases (#4) 2026-08-17 14:18:14 +02:00
nessar 26ab037084 feat: add brand mark component and dashboard page
- Introduced a new `BrandMark` component for branding purposes.
- Created a `DashboardPage` component with a responsive layout, including sections for user profile, apartment management, and API demo.
- Added styles for the dashboard page to enhance user experience.
- Implemented a settings page with theme preferences and session management features.
- Developed a sign-in page with branding and user-friendly design.
- Established a workspace navigation component for easy access to different sections of the application.
- Implemented an `ApartmentService` for managing apartment data with corresponding unit tests.
- Created a `ConfigService` for loading application configuration.
- Added a `ThemeService` to manage user theme preferences dynamically.
2026-08-17 14:18:14 +02:00
nessar 1a70bcd126 feat(frontend): add mobile-first Material redesign (#17) 2026-08-17 14:18:14 +02:00
nessar 92d16eb2c1 fix: proxy OAuth2/login/logout paths through nginx to Spring BFF
nginx was only forwarding /api/* to the backend.
Added proxy locations for:
  - /oauth2/  (Spring Security login initiation)
  - /login/oauth2/  (OAuth2 authorization code callback)
  - /logout  (Spring Security logout + RP-initiated end-session)

Also revert incorrect /api prefix on the login redirect URL.
2026-08-17 14:18:14 +02:00
nessar be80422c99 fix: remove OAuthService from ApartmentService - cookies handle auth in BFF pattern 2026-08-17 14:18:14 +02:00
nessar bbe8916e82 feat: rework OIDC to BFF (Backend-For-Frontend) cookie-session pattern
- backend: switch from OAuth2 Resource Server to OAuth2 Client (spring-boot-starter-oauth2-client)
- backend: configure Spring Security oauth2Login() with session cookie (JSESSIONID HttpOnly)
- backend: add UserController exposing /api/user to report authenticated user info
- backend: configure GET /logout with RP-initiated end-session support
- backend: update HelloController to use @AuthenticationPrincipal OAuth2User
- backend: update all tests to use .with(oidcLogin()) mock
- backend: explicitly configure OIDC provider endpoints to bypass discovery at test time
- frontend: remove angular-oauth2-oidc and @ngx-env/builder dependencies
- frontend: revert angular.json builders to standard @angular/build:*
- frontend: replace client-side OIDC flow with /api/user check + window.location redirects
- frontend: update app.config.ts and config.service.ts to remove OIDC configuration
- frontend: rewrite all unit tests to mock /api/user endpoint instead of OAuthService
- compose: move OIDC_CLIENT_ID and OIDC_CLIENT_SECRET to backend environment variables
- compose/dockerfile: remove frontend build-time OIDC ARG/ENV secrets
2026-08-17 14:18:14 +02:00
nessar fce17a1c31 feat: add OIDC_CLIENT_SECRET configuration to frontend environment and OIDC provider settings 2026-08-17 14:18:14 +02:00
nessar e69cc1a49f Remove config.json, install @ngx-env/builder to load OIDC configuration from env variables/files 2026-08-17 14:18:14 +02:00
nessar 62a0bd5db3 Implement Landlord and Apartment CRUD features with secure endpoints, coverage tests, and responsive UI 2026-08-17 14:18:14 +02:00
nessar 336ac1dfc3 chore: update container images, increase Angular budget thresholds, and reformat configuration files 2026-08-17 14:18:14 +02:00
nessar 6a73b469e4 Add mobile-first responsiveness constraint to specs and CSS styling 2026-08-17 14:18:14 +02:00
nessar fd2019e3cd Configure ESLint with deprecation checking and fix all lint violations 2026-08-17 14:18:14 +02:00
nessar bdc2e1bc57 Scaffold backend/frontend services, OIDC auth, and compose.yml 2026-08-17 14:18:14 +02:00