100 Commits

Author SHA1 Message Date
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
8fd599da9d refactor: Rebrand from 数字牧民 to Q58 2025-02-08 19:22:14 +08:00
Tuluobo
3e85d0828b feat: design home page ui 2024-10-10 09:38:04 +08:00
Tuluobo
ff0baffce8 refactor: update user field 2024-09-26 22:47:01 +08:00
Tuluobo
b8f7fcf180 fix: replace discourse host with env & typo, update README 2024-09-26 09:50:09 +08:00
Tuluobo
b8368cfc32 fix: not found curl in health check 2024-09-22 23:32:49 +08:00
Tuluobo
73cafbc250 feat: Add github action for docker image 2024-09-15 22:11:04 +08:00
Tuluobo
1069de389c refactor: Redesign the auth process 2024-09-15 20:05:32 +08:00
Tuluobo
19d063ae14 feat: OAuth authorization finished 2024-09-09 09:58:48 +08:00
Tuluobo
b92fe7d572 feat: Add Client pages 2024-09-08 20:21:02 +08:00
Tuluobo
c311aeb18e feat: Sign in with discourse sso 2024-09-08 17:24:43 +08:00
Tuluobo
7af50b3003 Initial commit from Create Next App 2024-09-07 18:19:33 +08:00