Add OAuth flows and UI integration

- Implemented OAuth endpoints (providers list, authorization, callback, linked accounts management).
- Added UI translations for OAuth workflows (auth process messages, linked accounts management).
- Extended TypeScript types and React hooks to support OAuth features.
- Updated app configuration with OAuth-specific settings and provider details.
- Introduced skeleton implementations for authorization and token endpoints in provider mode.
- Included unit test and integration hooks for OAuth capabilities.
This commit is contained in:
Felipe Cardoso
2025-11-25 07:59:20 +01:00
parent 063a35e698
commit 84e0a7fe81
14 changed files with 1711 additions and 4 deletions

View File

@@ -115,6 +115,24 @@ export const config = {
enableSessionManagement: parseBool(ENV.ENABLE_SESSION_MANAGEMENT, true),
},
oauth: {
// OAuth callback URL (for redirects after OAuth provider auth)
callbackPath: '/auth/callback',
// Providers configuration (icons and display names)
providers: {
google: {
name: 'Google',
icon: 'google',
color: '#4285F4',
},
github: {
name: 'GitHub',
icon: 'github',
color: '#24292F',
},
} as Record<string, { name: string; icon: string; color: string }>,
},
debug: {
api: parseBool(ENV.DEBUG_API, false) && ENV.NODE_ENV === 'development',
},