Skip to content

feat: add domain-wide delegation support for service accounts#32

Merged
a-bonus merged 1 commit intoa-bonus:mainfrom
starfysh-tech:feat/domain-wide-delegation
Jan 11, 2026
Merged

feat: add domain-wide delegation support for service accounts#32
a-bonus merged 1 commit intoa-bonus:mainfrom
starfysh-tech:feat/domain-wide-delegation

Conversation

@randynov
Copy link
Copy Markdown
Contributor

Summary

  • Adds GOOGLE_IMPERSONATE_USER environment variable support for service account authentication
  • Enables domain-wide delegation for Google Workspace enterprise deployments
  • Updates README with enterprise setup documentation

Fixes #30

Changes

  • src/auth.ts: Added subject parameter to JWT constructor when GOOGLE_IMPERSONATE_USER is set
  • README.md: Added "Alternative: Service Account with Domain-Wide Delegation (Enterprise)" section

Test plan

  • Build passes (npm run build)
  • Verify service account auth without impersonation still works
  • Verify service account auth with GOOGLE_IMPERSONATE_USER impersonates correctly

Add GOOGLE_IMPERSONATE_USER environment variable support to enable
service accounts to impersonate users in Google Workspace organizations.

Fixes a-bonus#30
@a-bonus a-bonus merged commit 3d79d73 into a-bonus:main Jan 11, 2026
@randynov randynov deleted the feat/domain-wide-delegation branch January 23, 2026 18:52
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.

Feature Request: Add Domain-Wide Delegation Support for Enterprise Deployment

2 participants