feat(auth): 重构统一认证并支持平级服务无感登录

This commit is contained in:
sophie committed 2026-07-28 09:15:41 +08:00
1 parent d79def5519
commit ca312ea751
64 files changed
+3713 -449

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ def create_app(config_name='default'):
return wrapped_resp
def _should_return_json_error() -> bool:
if request.path.startswith('/api/'):
if request.path.startswith('/api/') or request.path == '/.well-known/jwks.json':
return True
accepted = request.headers.get('Accept', '')
return 'application/json' in accepted.lower()