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:
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user