111 Commits

Author SHA1 Message Date
f9521d9afb refactor: Simplify OAuth authentication flow and update branding
- Remove complex OAuth parameter handling in UserAuthorize component
- Streamline sign-in process with direct dashboard redirect
- Update UserAuthForm to use simplified branding (Q58 instead of Q58论坛)
- Add session update after successful authentication
2025-02-21 13:32:51 +08:00
a85c15381a 回归原项目 2025-02-21 13:25:05 +08:00
379fceb26b refactor: Improve SSO authentication flow with enhanced error handling and parameter processing
- Update Q58 route to handle dynamic OAuth parameters
- Add error handling and logging for SSO URL generation
- Modify UserAuthForm to preserve and pass OAuth parameters during authentication
- Implement more robust error handling in authentication process
2025-02-21 13:15:53 +08:00
1e519738ea feat: Improve OAuth authorization flow and redirect handling
- Update signIn action to support dynamic redirect after authentication
- Modify Q58 OAuth route to handle dynamic return URL with original parameters
- Refactor UserAuthorize component to support OAuth-specific redirect scenarios
- Add support for preserving and processing OAuth parameters during login
2025-02-21 13:08:42 +08:00
f7d32436b5 fix: Modify OAuth authorization redirect after login
- Update router.push to redirect back to OAuth authorization page
- Preserve original OAuth parameters using window.location.search
- Ensure smooth continuation of OAuth authorization flow after authentication
2025-02-21 12:52:26 +08:00
b5c3d84ec5 fix: Update login redirect path in OAuth authorization page
- Change redirect path from "/login" to "/sign-in" for consistent authentication routing
2025-02-21 12:39:03 +08:00
760bbdbafd feat: Enhance homepage and OAuth authorization with improved design and functionality
- Redesign homepage with modern layout, feature cards, and interactive tabs
- Add Radix UI Tabs component for code example section
- Improve OAuth authorization page with more robust parameter validation
- Refactor Authorizing component with better loading state and error handling
- Optimize authorization code generation and expiration logic
- Update authorization flow to support standard OAuth 2.0 parameters
2025-02-20 03:44:05 +08:00
5a31f79f75 refactor: Update OAuth authorization page to support standard OAuth parameters
- Modify AuthorizeParams interface to align with OAuth 2.0 specification
- Add validation for required OAuth parameters
- Implement parameter transformation and encoding
- Improve error handling for missing or invalid parameters
- Ensure compatibility with standard OAuth authorization flow
2025-02-20 03:21:17 +08:00
f276f28118 fix: Replace router.push with window.location.href in ErrorCard
- Modify error redirection to use window.location.href for full page reload
- Ensure proper error parameter propagation during OAuth authorization
- Maintain consistent error handling behavior across different scenarios
2025-02-20 03:14:38 +08:00
7c05f5f70e feat: Enhance OAuth authorization error handling with ErrorCard
- Add comprehensive error handling for invalid clients, disabled applications, and mismatched redirect URIs
- Implement ErrorCard component to display detailed error messages during OAuth authorization
- Improve user feedback with specific error types and descriptions
- Replace simple error text with structured error handling
2025-02-20 03:13:04 +08:00
a82643ada4 refactor: Simplify OAuth authorization page and component
- Restructure AuthorizePage to handle user authentication and client validation
- Modify Authorizing component to use new authorization action
- Improve error handling with dedicated ErrorCard component
- Streamline authorization flow and parameter handling
- Remove redundant validation checks in favor of centralized authorization logic
2025-02-20 03:09:46 +08:00
493ad7136f refactor: Enhance authorization flow with improved permission checks and user context
- Separate platform and application-level authorization checks
- Use current user session for authorization instead of passing user ID
- Add detailed permission validation with specific error messages
- Simplify authorization record creation and update logic
- Remove redundant client and user checks
2025-02-20 03:03:49 +08:00
3782ec8ca0 添加"授权管理页面" 2025-02-20 02:39:55 +08:00
b01890e2cf refactor: Simplify Authorizing component and remove progress tracking
- Remove unnecessary progress bar and related state management
- Simplify authorization flow with direct async function in useEffect
- Remove unused useCallback and progress tracking logic
- Streamline loading state rendering
- Update loading message to be more concise
2025-02-20 02:30:46 +08:00
1d0fe64fdb feat: Improve OAuth authorization error handling and client validation
- Add comprehensive error handling for OAuth authorization requests
- Implement detailed error redirects for invalid client, redirect URI, and disabled applications
- Update Authorizing component to handle OAuth parameters more robustly
- Refactor client retrieval to select specific fields and improve security
- Enhance error messaging for OAuth authorization flow
2025-02-20 02:24:06 +08:00
bd6b2b747d feat: Add user allowlist and improve client creation validation
- Implement user allowlist feature for client applications
- Add input validation for client creation form
- Handle parsing of allowed users list
- Improve error handling and user feedback during client creation
- Update authorization process to check client enabled status and user permissions
2025-02-20 02:13:06 +08:00
0dd6a3338f refactor: Improve UI and UX for client management and authorization
- Updated client status toggle with Switch component
- Refined admin pages for clients and users with layout improvements
- Enhanced authorization action with more detailed error logging
- Modified dashboard links to point to client list instead of new client page
- Updated client edit form with clearer user input guidance
2025-02-20 02:02:04 +08:00
70e66294e3 feat: Add user access control and client management enhancements
- Introduced `allowedUsers` field to Client model for granular access control
- Implemented user filtering in authorization process
- Updated client edit form with allowed users configuration
- Enhanced dashboard and admin pages with improved user and client management
- Refactored client update and delete API routes
- Added form validation using Zod and react-hook-form
2025-02-20 01:49:52 +08:00
a81fee3f9a feat: Initialize default authorization state with enabled status and timestamp 2025-02-20 01:15:16 +08:00
781d2fc0c2 feat: Add authorization tracking and management features
- Enhanced Authorization model with `enabled` and `lastUsedAt` fields
- Implemented client-side and admin authorization status toggles
- Added comprehensive authorization statistics and recent authorization tracking
- Updated client details pages to display authorization information
- Improved navigation and user experience for managing client authorizations
2025-02-20 01:13:22 +08:00
402295d908 refactor: Improve AccessToken creation method with explicit data handling 2025-02-20 00:33:58 +08:00
ecc02928ed feat: add enabled field to Client model 2025-02-20 00:31:23 +08:00
77d00fd513 refactor: Remove unnecessary client directives and simplify server-side code 2025-02-20 00:25:09 +08:00
07ad2284cd chore: Update TypeScript type definitions for Node and React 2025-02-20 00:21:45 +08:00
98e5563eb0 feat: Enhance admin dashboard with comprehensive system overview and statistics 2025-02-20 00:19:29 +08:00
dcf36824ed chore: update pnpm-lock.yaml 2025-02-19 01:15:10 +08:00
47d1da1235 chore: 更新 lint-staged 依赖至 15.4.3 2025-02-19 01:12:09 +08:00
c4eccc593c style: 移除全局样式中的暗色模式媒体查询 2025-02-19 01:11:53 +08:00
d2aeb651cf fix: Add unoptimized prop to Image components for logo and avatar rendering 2025-02-17 06:03:46 +08:00
0c1d7fceea refactor: Replace Discourse SSO with Q58 authentication flow 2025-02-17 05:56:15 +08:00
25f262c1ac docs: Update OAuth 2.0 documentation with detailed error codes and security guidelines 2025-02-17 05:20:27 +08:00
08be0879f2 feat: Enhance OAuth 2.0 documentation and user session metadata 2025-02-17 05:14:04 +08:00
84e8adf285 chore: Update Prisma client import paths 2025-02-16 22:11:53 +08:00
a3fe3ec419 feat: Enhance authorization UI and add analytics tracking 2025-02-16 22:03:45 +08:00
8be59fe6b6 chore: Add Radix UI Alert Dialog and update dependencies 2025-02-15 00:36:41 +08:00
b025ab22be 添加编辑应用和删除应用功能 2025-02-15 00:31:31 +08:00
bf1797c5d4 chore: 更新所有链接以指向新的 q58.club 域名 2025-02-15 00:00:29 +08:00
3ba0e3ed6b refactor: Migrate sign-in method to NextAuth direct sign-in 2025-02-09 19:12:53 +08:00
fc347747c4 feat: Improve sign-in error handling and redirect flow 2025-02-09 19:09:38 +08:00
5c2085d238 feat: Add admin route and navigation for admin users 2025-02-09 19:05:17 +08:00
a9a5d2d59a feat: Improve user authorization and navigation flow 2025-02-09 18:58:49 +08:00
f604046aa4 chore: Update landing page and auth links to Q58 official website 2025-02-08 20:21:07 +08:00
39db9e79a6 feat: Redesign landing page with comprehensive OAuth integration guide 2025-02-08 20:16:33 +08:00
56131dd348 chore: Update copyright year and GitHub repository link 2025-02-08 20:11:02 +08:00
2bf60a8a22 feat: Improve user avatar and dropdown menu in NavBar 2025-02-08 19:58:09 +08:00
00538187c6 feat: Enhance dashboard UI with new layout and client management 2025-02-08 19:54:27 +08:00
9ff0dfdf7f chore: Configure Prisma with PostgreSQL extension preview and direct URL 2025-02-08 19:45:18 +08:00
6c0b39a743 chore: Update Q58 branding text in authorization card 2025-02-08 19:40:44 +08:00
83c668e717 chore: Update branding references to Q58 in documentation and UI 2025-02-08 19:40:12 +08:00
f771f4fb95 chore: Update favicon and logos for Q58 Connect branding 2025-02-08 19:29:44 +08:00