Files
task-stream/libs/api/identity/infrastructure
Josep Piguillem b1002e6599 fix(auth): keep Pireon's OAuth error hint in token errors and logs
Passport answers token failures with a generic `invalid_request` description
and puts the actual cause in `hint` (invalid redirect URI, expired or revoked
code, code issued to another client…). The proxy dropped it, so sign-in
showed only "The request is missing a required parameter…". It is now
appended to the error message and logged with the grant type and client id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:52:16 +02:00
..
2026-10-03 13:40:26 +02:00
2026-10-03 13:40:26 +02:00
2026-10-03 13:40:26 +02:00
2026-10-03 13:40:26 +02:00
2026-10-03 13:40:26 +02:00
2026-10-03 13:40:26 +02:00
2026-10-03 13:40:26 +02:00

api-identity-infrastructure

Adaptadores de salida de identidad.

  • Import: @task-stream/api/identity/infrastructure
  • Capa: infrastructure · Tags: scope:api-identity, type:infrastructure

Contenido

  • PireonIdentityProvider: GET /api/user, /api/users y POST /oauth/token de Pireon.
  • RedisSessionCache: tokens validados, guardados por hash SHA-256 y con TTL.
  • MongoUserRegistry: copia local de usuarios (colección users).

Comandos

npx nx lint api-identity-infrastructure
npx nx test api-identity-infrastructure    # Jest

Reglas de dependencia entre capas: Arquitectura.