Commit Graph

16 Commits

Author SHA1 Message Date
Sam
fa93d71725 feat: 添加OAuth2认证配置和实现
添加OAuth2认证相关配置文件和服务实现,包括环境变量配置、PKCE流程支持、token管理等功能。主要变更:
- 新增OAuth2配置文件
- 实现OAuth2服务层
- 更新请求拦截器支持token自动刷新
- 修改认证API和store以支持OAuth2流程
2026-02-07 17:47:11 +08:00
Sam
e32b8b3080 fix: update auth service URL to port 5132
- Change VITE_AUTH_SERVICE_URL from localhost:5000 to localhost:5132
- This matches the actual auth service port in launchSettings.json
2026-02-06 16:16:20 +08:00
Sam
b0f656da63 fix: remove 'roles' from default scope to prevent 403 error
- Remove 'roles' from default oauthConfig scope
- Roles scope is not registered in OpenIddict
- This was causing 403 Forbidden when requesting access token
2026-02-06 15:50:16 +08:00
Sam
8bd64b8ea3 fix: remove unregistered 'roles' scope from OAuth2 requests
- Remove 'roles' from .env.development and .env.production
- Remove 'roles' from SeedData.cs
- 403 error was caused by requesting unregistered scope
- All registered scopes: openid, profile, email, api, offline_access
2026-02-06 15:49:40 +08:00
Sam
65ea3ecf79 feat: export OAuth2 service functions 2026-02-06 01:48:19 +08:00
Sam
c0874bfab8 feat: implement OAuth2 integration in web-ele
- Add OAuth2 configuration and PKCE service
- Update request interceptor for OAuth2 token management
- Update auth API for OAuth2 token handling
- Update auth store for OAuth2 flow
- Create OAuth callback page
- Update login page for OAuth2
- Add OAuth callback route
- Update environment configuration for OAuth2
2026-02-06 01:47:05 +08:00
Sam
02415839ab feat: add OAuth2 configuration to web-ele 2026-02-06 01:44:17 +08:00
Sam
bad60b5108 feat: add expiresAt support to access store 2026-02-06 01:43:34 +08:00
Sam
c803c2a633 docs: add OAuth2 integration design for Fengling.AuthService
Design document for integrating Vben Admin with Fengling.AuthService using OAuth2 Authorization Code flow with PKCE.

Key features:
- OAuth2 Authorization Code flow with PKCE
- JWT token management with automatic refresh
- Single Logout (SLO) support
- Multi-tenant and RBAC support via claims
- Full error handling and security considerations
2026-02-06 01:24:18 +08:00
Sam
0003b0f1fd feat: implement OAuth 2.0 login flow with auto-redirect
- Modify login page to auto-redirect to auth center
- Update auth store to use OAuth login flow
- Handle OAuth callback and token exchange
- Update logout to use OAuth logout endpoint
2026-02-06 01:14:11 +08:00
Sam
0ebe467927 feat: integrate OAuth 2.0 authentication with Fengling Auth Center 2026-02-06 00:41:41 +08:00
Sam
393296ef3d fix: rename typings.d.ts to typings.ts for proper module resolution 2026-02-06 00:38:28 +08:00
Sam
87db42b5db feat(fengling): add routes and pages for Fengling Console management 2026-02-06 00:30:00 +08:00
Sam
e5bbe101c9 chore: configure environment variables for Fengling API 2026-02-06 00:14:35 +08:00
Sam
9b5198f87a feat(api): migrate TypeScript type definitions and API services 2026-02-06 00:11:36 +08:00
Sam
9600147586 chore: initialize Vben Admin project 2026-02-06 00:04:38 +08:00