Skip to content

feat(auth): add Grantfox OAuth integration - #153

Merged
memplethee-lab merged 1 commit into
SourceXXL:mainfrom
devIKargi:feat/Grantfox
Aug 26, 2026
Merged

feat(auth): add Grantfox OAuth integration#153
memplethee-lab merged 1 commit into
SourceXXL:mainfrom
devIKargi:feat/Grantfox

Conversation

@devIKargi

Copy link
Copy Markdown
Contributor

Closes #144

Description

Adds Grantfox OAuth2 SSO integration using the PKCE flow.

Changes include:

  • Grantfox OAuth authorization, callback, token exchange, refresh, and revoke flows
  • Grantfox controller, OAuth service, and identity middleware
  • Encrypted refresh-token persistence
  • Grantfox DTOs and database entity
  • Environment configuration and validation
  • grantfox social provider support

Fixes #

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Performance improvement
  • Code refactoring

How Has This Been Tested?

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing performed
  • Tested in staging environment

Validation performed:

2 test suites passed
26 tests passed
npm run build passed

Reproduce the focused tests with:

npx jest src/core/auth/grantfox.controller.spec.ts src/core/auth/services/grantfox-oauth.service.spec.ts --runInBand

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review
  • I have added tests that prove the feature works
  • New and existing relevant unit tests pass locally
  • I have made corresponding changes to the documentation
  • Tested in staging environment
  • Dependent changes have been merged and published downstream

Screenshots

Not applicable.

Additional Notes

Grantfox credentials and encryption settings are documented in .env.example. The integration requires valid Grantfox OAuth client configuration and a 32-byte encryption key for refresh-token storage.

@memplethee-lab
memplethee-lab merged commit ca3ad98 into SourceXXL:main Aug 26, 2026
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]: Grantfox OAuth2 SSO integration

2 participants