Sam
0c5bd5e647
feat: 添加OAuth2认证配置和实现
...
添加OAuth2认证相关配置文件和服务实现,包括环境变量配置、PKCE流程支持、token管理等功能。主要变更:
- 新增OAuth2配置文件
- 实现OAuth2服务层
- 更新请求拦截器支持token自动刷新
- 修改认证API和store以支持OAuth2流程
2026-02-07 17:47:11 +08:00
Sam
7c92208c40
fix: remove invalid app.UseOpenIddictServer() call
...
- Remove non-existent middleware call
- OpenIddict server is automatically configured via AddOpenIddictConfiguration
- Keep correct middleware order: StaticFiles -> Routing -> Authentication -> Authorization
2026-02-06 21:50:50 +08:00
Sam
5a7ebaf20d
feat: update OAuth2 client configuration for Fengling Console
2026-02-06 01:47:41 +08:00
Sam
d92d51fb3e
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
b6c85b1c4b
fix: configure TenantInfo as owned entity and use AsNoTracking
...
- Add AsNoTracking to tenant query to avoid tracking conflicts
- Configure TenantInfo as owned entity in ApplicationUser
- Map TenantInfo properties to separate columns in AspNetUsers table
2026-02-06 00:55:58 +08:00
Sam
635e3b6c86
feat: configure OAuth client for Fengling Console
...
- Add localhost:5777 callback URIs to fengling-console client
- Register OIDC scopes: openid, profile, email
- Add support for development environment
2026-02-06 00:47:06 +08:00
Sam
c998686ab6
feat(console): complete migration of User, Tenant, and Role management APIs
2026-02-05 14:21:36 +08:00
Sam
02b446cfa7
first commit
2026-02-03 15:30:12 +08:00
Sam
9059c56515
feat(auth): pre-register Fengling.Console as OAuth client
2026-02-02 09:59:32 +08:00
Sam
cda6225bc5
feat(auth): add OAuth client management API
2026-02-02 09:58:55 +08:00
Sam
42976f09df
feat(auth): add seed data for admin and test users
2026-02-02 09:53:06 +08:00
Sam
9f414ccb74
feat(auth): add user and role models with EF Core migrations
2026-02-01 23:36:20 +08:00