feat: implement JWT authentication and RBAC authorization filters in gateway
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user