Skip to content

Conversation

@MelbourneDeveloper
Copy link
Owner

TLDR;

File logging for all APIs, shared JWT signing key for local dev, incremental sync with version tracking, DataProvider methods replacing raw SQL.

Brief Details

  • Logging: Added FileLoggerProvider to Gatekeeper, Clinical, and Scheduling APIs
  • Auth: Default JWT key now deterministic (32 zeros) so all local APIs validate each other's tokens
  • Sync: Tracks last synced version in _sync_state table, requests only new changes via fromVersion param
  • TokenService: Swapped inline SQL for generated RevokeSessionAsync/GetSessionRevokedAsync
  • Misc: Code formatting, pre-generated UUIDs in SampleDataSeeder, website hero block removed

How Do The Tests Prove This Works?

  • Gatekeeper.Api.Tests validates token generation/revocation with new DataProvider methods
  • Clinical.Api.Tests confirms API endpoints work with shared JWT validation
  • Sync version tracking tested by running sync worker multiple times—only new changes processed

@MelbourneDeveloper MelbourneDeveloper merged commit 7038bf4 into main Jan 2, 2026
14 checks passed
@MelbourneDeveloper MelbourneDeveloper deleted the authandsync branch January 2, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants