Commit Graph
369 Commits
Author SHA1 Message Date
nessar fd3fc0123a feat: add ADR for Angular Material with user-selectable themes 2026-08-17 14:18:14 +02:00
nessar f94b961403 refactor: simplify OIDC provider configuration by using issuer-uri for auto-discovery 2026-08-17 14:18:14 +02:00
nessar 18ee6a963f fix: correct OIDC provider endpoint paths for voidAuth and add test properties
The hardcoded /protocol/openid-connect/* paths are Keycloak-specific.
voidAuth uses different OIDC endpoint paths discovered via .well-known.

- Add src/test/resources/application.properties with stub OIDC config so
  Spring context starts without hitting a real OIDC provider during tests
- Document in main application.properties that endpoint path suffixes must
  match the actual provider's URL structure
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 53d0c886a6 Fix backend database connectivity in compose.yml by renaming to spring.mongodb.uri, adding credentials, and introducing healthcheck 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 60f0377f97 build: migrate frontend Dockerfile to Node 26 base image and update build artifact paths 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
nessar 71a2b3081f update domain 2026-08-17 14:18:14 +02:00
nessar 447529a8a4 docs: initialize project documentation with context glossary, PRD, and core ADRs 2026-08-17 14:18:14 +02:00
nessar 134a2da599 feat: initialize agent skills library with comprehensive documentation, configurations, and specialized workflows 2026-08-17 14:18:14 +02:00
nessar 63b04c33c5 Initial commit 2026-08-17 14:18:12 +02:00