24 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
8fd599da9d refactor: Rebrand from 数字牧民 to Q58 2025-02-08 19:22:14 +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
c311aeb18e feat: Sign in with discourse sso 2024-09-08 17:24:43 +08:00