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>
This commit is contained in:
jtricerolph 2026-07-07 12:34:52 +00:00
parent 5053b37adf
commit e758add8ae
2 changed files with 20 additions and 10 deletions

View file

@ -30,7 +30,7 @@ export const INTEGRATIONS = {
workforce: {
name: 'Workforce',
configFields: ['base_url', 'sync_hours'],
secretFields: ['email', 'password'],
secretFields: ['bearer_token', 'email', 'password'],
},
smtp: {
name: 'SMTP Email',