110 Commits

Author SHA1 Message Date
bcec776a00 refactor: Simplify SSO authentication redirect to use direct window location 2025-02-21 21:34:56 +08:00
849265a26f fix: Improve SSO authentication form submission with dynamic parameter extraction 2025-02-21 21:28:37 +08:00
2c94af2b91 fix: Improve OAuth callback URL parsing and handling 2025-02-21 21:25:27 +08:00
b9ace034bf feat: Implement form-based SSO redirect for more reliable authentication flow 2025-02-21 21:19:52 +08:00
21a2a51ba6 feat: Enhance OAuth authentication with robust URL parsing and error logging 2025-02-21 21:12:57 +08:00
c176362949 fix: Improve OAuth callback URL handling in authentication flow 2025-02-21 21:04:46 +08:00
f40979b4ad fix: Decode callback URL and reset loading state on authentication error 2025-02-21 21:00:20 +08:00
7188c46cd7 feat: Improve SSO authentication with enhanced error handling and dynamic return URL 2025-02-21 20:51:44 +08:00
1edfc035e2 feat: Enhance OAuth redirect with dynamic callback URL preservation 2025-02-21 20:39:55 +08:00
2f0d1aee47 refactor: Simplify OAuth state management and remove cookie-based approach 2025-02-21 20:37:35 +08:00
d39cb2e7d5 feat: Improve OAuth state parsing and error handling in sign-in route 2025-02-21 20:29:00 +08:00
3b6117dc61 feat: Conditionally set OAuth return URL based on OAuth state 2025-02-21 20:23:50 +08:00
4fe8f1cb11 feat: Add OAuth state parameter handling in sign-in flow 2025-02-21 20:17:10 +08:00
03107936ad refactor: Remove metadata export from sign-in page 2025-02-21 20:10:53 +08:00
04d9ac38dc refactor: Migrate OAuth state management to API-based approach 2025-02-21 20:09:27 +08:00
67b434e692 feat: Replace localStorage with secure cookies for OAuth state management 2025-02-21 20:04:26 +08:00
a40234e6c8 refactor: Consolidate OAuth authorization page and enhance parameter handling 2025-02-21 19:54:25 +08:00
32aaf27b2e feat: Restore OAuth parameter preservation during authentication flow 2025-02-21 19:49:55 +08:00
d83f60b0a9 refactor: Simplify SSO authentication route and OAuth parameter handling 2025-02-21 19:39:51 +08:00
d99b9bcc77 feat: Enhance OAuth authorization flow with dynamic redirect and parameter handling 2025-02-21 19:33:36 +08:00
a05bce4e38 refactor: Simplify OAuth authorization page and component with direct SSO handling 2025-02-21 19:19:11 +08:00
a3e43bf9e1 refactor: Simplify user authorization action and component with direct sign-in method 2025-02-21 18:56:27 +08:00
4254098b53 refactor: Simplify SSO authorization flow by removing OAuth parameter handling 2025-02-21 18:50:05 +08:00
a0026c005d refactor: Streamline SSO and OAuth authorization flow with simplified parameter handling 2025-02-21 18:47:32 +08:00
1b4a988ba2 refactor: Simplify user authorization component and improve error handling 2025-02-21 18:32:59 +08:00
2f848af557 refactor: Improve OAuth and SSO authorization flow with enhanced loading and error handling 2025-02-21 18:27:55 +08:00
86adf32db8 refactor: Enhance OAuth authorization flow with improved parameter handling and loading state 2025-02-21 18:23:47 +08:00
05b8ee3c75 feat: 改进 OAuth 参数存储和重定向机制,使用 cookies 管理临时授权参数 2025-02-21 18:18:45 +08:00
8bcaf1fd89 refactor: 简化 SSO 登录流程,移除 OAuth 参数存储和复杂重定向逻辑 2025-02-21 18:11:50 +08:00
99e833c84e refactor: 重构 SSO 登录流程,改进错误处理和状态管理 2025-02-21 18:05:05 +08:00
0d1228ec30 feat: 优化 OAuth 认证流程,改进参数获取和加载状态管理 2025-02-21 18:00:42 +08:00
178d2af9aa feat: 改进 OAuth 参数存储和处理机制,优化跨页面参数传递 2025-02-21 17:58:58 +08:00
e193568ee8 refactor: 改进 OAuth 参数处理和错误处理机制 2025-02-21 17:54:17 +08:00
1c0aa7e65f refactor: 优化 SSO 和 OAuth 重定向流程,改进参数处理和回调机制 2025-02-21 17:43:21 +08:00
f9c912e8c5 refactor: 重构用户授权流程,简化 OAuth 和 SSO 重定向逻辑 2025-02-21 17:28:14 +08:00
6c8bda6b32 feat: 增加 OAuth 支持,优化用户授权流程,简化参数处理和错误显示 2025-02-21 17:22:56 +08:00
3b47daccee 修复: 即使用户没有提前登录本系统,从第三方应用发起授权请求时也能正确完成整个认证流程 2025-02-21 17:12:53 +08:00
cd24fe93b7 取消错误更改 2025-02-21 17:09:10 +08:00
0da3da33ef 使用原始方法 2025-02-21 16:49:18 +08:00
0c98d52a16 refactor: 更新用户授权组件以使用next-auth进行登录,简化重定向逻辑并优化会话更新 2025-02-21 16:45:52 +08:00
0ef9ae7903 refactor: 优化用户授权组件的错误处理逻辑,简化代码结构 2025-02-21 16:40:42 +08:00
a5a9f2e779 refactor: 简化用户授权组件的登录逻辑,移除不必要的延迟和重定向处理 2025-02-21 16:27:23 +08:00
3f193650d2 docs: 更新README以添加检查点说明;优化用户授权组件的重定向逻辑 2025-02-21 16:20:37 +08:00
2b11972699 登录后跳转, 添加更长的等待时间 2025-02-21 16:11:17 +08:00
3dece6b5df fix: 添加短暂延迟以确保会话更新完成 2025-02-21 15:49:54 +08:00
c535e037fc docs: 更新README以包含项目部署网址和Q58论坛信息;优化用户授权组件的登录回调逻辑 2025-02-21 15:42:40 +08:00
5f196acb4a refactor: 移除不必要的会话更新逻辑以简化导航栏组件 2025-02-21 15:36:47 +08:00
1083416b17 feat: Enhance Discourse SSO authentication with dynamic return URL handling
- Update signIn action to extract and use return_sso_url from SSO parameters
- Modify UserAuthorize component to dynamically retrieve SSO and signature parameters
- Improve error handling and logging in authentication process
- Update README to reflect current project deployment and simplify description
2025-02-21 15:30:25 +08:00
8a7997f5b9 feat: Improve user authorization UI and session management
- Enhance UserAuthorize component with Card-based loading and error states
- Add animated loading spinner and error icon for better user feedback
- Implement router refresh after successful authentication
- Update NavBar to automatically update session on component mount
- Streamline sign-out process with router refresh
2025-02-21 13:42:38 +08:00
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