feat: implement JWT authentication and RBAC authorization filters in gateway

This commit is contained in:
张翔
2026-03-14 11:03:20 +08:00
parent 419c046dc4
commit 915edf4f7a
6 changed files with 280 additions and 1 deletions
@@ -12,6 +12,8 @@ spring:
predicates:
- Path=/api/**
default-filters:
- name: JwtAuthentication
- name: RbacAuthorization
- name: Retry
args:
retries: 3
@@ -23,6 +25,10 @@ spring:
factor: 2
basedOnPreviousValue: false
jwt:
secret: ${JWT_SECRET:mySecretKeyForNovalonManageSystem2024}
expiration: ${JWT_EXPIRATION:86400000}
management:
endpoints:
web: