Commit graph

16 commits

Author SHA1 Message Date
24f3fcdc7b Workforce: bearer token only, remove email/password fields
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-07 12:42:49 +00:00
e758add8ae Support Workforce bearer token as alternative to email/password OAuth
Adds bearer_token secret field — if configured, the auth service uses it
directly and skips the OAuth password grant entirely. Falls back to
email/password flow if no token is set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-07 12:34:52 +00:00
5053b37adf Add internal GET endpoint for global_config keys
Allows other services (e.g. room-planner) to read shared config
stored in settings_db without cross-database queries. Auth via
SETTINGS_SECRET bearer token, same pattern as /internal/integration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-04 13:13:20 +00:00
9eaf05a4aa Workforce test: use platform scope
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 01:11:27 +00:00
fa7222a4c8 Workforce test: remove scope restriction to match auth service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 01:08:31 +00:00
1ec923dc1f Workforce test: use department scope to match auth service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 01:03:19 +00:00
49cd17f957 Use me+department scopes in Workforce connection test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 00:57:01 +00:00
a6627ee763 Request department and staff scopes in Workforce connection test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 00:55:17 +00:00
ed6a978a48 Add nodemailer dependency for SMTP connection test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 00:42:27 +00:00
6f0a24787a Remove OAuth scope restriction from Workforce connection test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 00:41:37 +00:00
e84b916ecf Fix Workforce connection test: use form-encoded OAuth body
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 00:35:55 +00:00
a886b4b30e Add connection tests for Workforce and SMTP integrations
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 00:33:48 +00:00
2339a75d07 Add Workforce and SMTP integrations to settings schema
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-02 00:24:11 +00:00
31f8bba377 Add internal service-to-service integration endpoint 2026-07-01 19:33:08 +00:00
f5f87fdd1f Always return all schema config fields in maskRow
Config object starts empty so the frontend had nothing to render for
plaintext fields (region, username etc). Now populates all schema-defined
fields with empty string when not yet saved.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-01 19:22:12 +00:00
e7b08ccf31 Initial settings service
Fastify API for storing third-party integration credentials (Newbook, Resos,
Nextcloud, Azure, SambaPOS) with AES-256-GCM encryption for sensitive fields.
Includes Newbook room sync endpoint and global_config store for shared app data.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-01 18:56:19 +00:00