fix: 支持社区公开接口可选认证

This commit is contained in:
zetaloop
2026-04-25 08:31:29 +08:00
parent e290e7908a
commit 7f2d3f7d0e
2 changed files with 20 additions and 0 deletions
+10
View File
@@ -651,6 +651,11 @@ static_resources:
headers: headers:
- name: ":method" - name: ":method"
exact_match: GET exact_match: GET
requires:
requires_any:
requirements:
- provider_name: juwan_user_jwt
- allow_missing: {}
- match: - match:
safe_regex: safe_regex:
google_re2: {} google_re2: {}
@@ -663,6 +668,11 @@ static_resources:
headers: headers:
- name: ":method" - name: ":method"
exact_match: GET exact_match: GET
requires:
requires_any:
requirements:
- provider_name: juwan_user_jwt
- allow_missing: {}
- match: - match:
prefix: /api/v1/reviews prefix: /api/v1/reviews
headers: headers:
+10
View File
@@ -449,6 +449,11 @@ data:
headers: headers:
- name: ":method" - name: ":method"
exact_match: "GET" exact_match: "GET"
requires:
requires_any:
requirements:
- provider_name: juwan_user_jwt
- allow_missing: {}
- match: - match:
prefix: "/api/v1/reviews" prefix: "/api/v1/reviews"
headers: headers:
@@ -487,6 +492,11 @@ data:
headers: headers:
- name: ":method" - name: ":method"
exact_match: "GET" exact_match: "GET"
requires:
requires_any:
requirements:
- provider_name: juwan_user_jwt
- allow_missing: {}
- match: - match:
safe_regex: safe_regex:
google_re2: {} google_re2: {}