Commit Graph

7 Commits

Author SHA1 Message Date
Sam
0c5bd5e647 feat: 添加OAuth2认证配置和实现
添加OAuth2认证相关配置文件和服务实现,包括环境变量配置、PKCE流程支持、token管理等功能。主要变更:
- 新增OAuth2配置文件
- 实现OAuth2服务层
- 更新请求拦截器支持token自动刷新
- 修改认证API和store以支持OAuth2流程
2026-02-07 17:47:11 +08:00
Sam
1a0c18c198 fix: simplify OpenIddict server configuration
- Remove non-existent method calls (AllowAuthorizationCodeFlow, etc)
- Keep only basic configuration: issuer, encryption, scopes
- This should fix 'authorization endpoint must be enabled' error
2026-02-06 21:59:06 +08:00
Sam
875ba7bc61 fix: add UseAspNetCore() to OpenIddict validation
- Add .UseAspNetCore() to validation configuration
- This enables OpenIddict Server to properly process OAuth2 requests
- Fix for 'The OpenID Connect request cannot be retrieved' error
2026-02-06 21:54:56 +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
02b446cfa7 first commit 2026-02-03 15:30:12 +08:00
Sam
9a717b153f feat(auth): add authentication controller with login endpoint 2026-02-02 01:00:57 +08:00
Sam
baed266718 feat(auth): configure OpenIddict with JWT and OAuth2 support 2026-02-01 23:40:37 +08:00