-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
49 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: UNSPECIFIED_PHASE | ||
priority: 100 | ||
priority: 250 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ info: | |
title: Basic Auth | ||
x-title-i18n: | ||
zh-CN: Basic 认证 | ||
description: This plugin implements an authentication function based on HTTP Basic Auth standard. | ||
description: implement authentication feature based on HTTP Basic Auth standard. | ||
x-description-i18n: | ||
zh-CN: 本插件实现了基于 HTTP Basic Auth 标准进行认证鉴权的功能。 | ||
zh-CN: 实现基于 HTTP Basic Auth 标准进行认证鉴权的功能。 | ||
iconUrl: https://img.alicdn.com/imgextra/i4/O1CN01BPFGlT1pGZ2VDLgaH_!!6000000005333-2-tps-42-42.png | ||
version: 1.0.0 | ||
contact: | ||
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 320 | ||
priority: 10 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
@@ -84,7 +84,6 @@ spec: | |
example: | ||
global_auth: false | ||
consumers: | ||
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险 | ||
- name: consumer1 | ||
credential: admin:123456 | ||
- name: consumer2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHZ | ||
priority: 310 | ||
priority: 10 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 910 | ||
priority: 420 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,8 @@ info: | |
url: http://higress.io/ | ||
email: [email protected] | ||
spec: | ||
priority: 10 | ||
phase: UNSPECIFIED_PHASE | ||
priority: 20 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHZ | ||
priority: 310 | ||
priority: 30 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 910 | ||
priority: 400 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,19 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 910 | ||
priority: 430 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
example: | ||
status_code: 200 | ||
headers: | ||
- Content-Type=application/json | ||
body: "{\"hello\":\"world\"}" | ||
timeout: 5000 | ||
endpoint: /graphql | ||
domain: api.github.com | ||
gql: | | ||
query ($owner:String! $name:String!){ | ||
repository(owner:$owner, name:$name) { | ||
name | ||
forkCount | ||
description | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,13 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 330 | ||
priority: 50 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
example: | ||
global_auth: false | ||
consumers: | ||
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险 | ||
- key: appKey-example-1 | ||
secret: appSecret-example-1 | ||
name: consumer-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,8 @@ info: | |
url: http://higress.io/ | ||
email: [email protected] | ||
spec: | ||
priority: 10 | ||
phase: AUTHN | ||
priority: 200 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,13 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 340 | ||
priority: 40 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
example: | ||
global_auth: false | ||
consumers: | ||
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险 | ||
- name: consumer1 | ||
issuer: abcd | ||
jwks: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 310 | ||
priority: 20 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
@@ -116,11 +116,10 @@ spec: | |
- allow | ||
example: | ||
global_auth: false | ||
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险 | ||
consumers: | ||
- credential: 2bda943c-ba2b-11ec-ba07-00163e1250b5 | ||
- credential: key-example1 | ||
name: consumer1 | ||
- credential: c8c8e9ca-558e-4a2d-bb62-e700dcc40e35 | ||
- credential: key-example2 | ||
name: consumer2 | ||
keys: | ||
- apikey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ info: | |
url: http://higress.io/ | ||
email: [email protected] | ||
spec: | ||
phase: UNSPECIFIED_PHASE | ||
priority: 10 | ||
configSchema: | ||
openAPIV3Schema: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ info: | |
url: http://higress.io/ | ||
email: [email protected] | ||
spec: | ||
phase: AUTHZ | ||
#priority: 330 | ||
phase: AUTHN | ||
priority: 30 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ info: | |
url: http://higress.io/ | ||
email: [email protected] | ||
spec: | ||
phase: AUTHZ | ||
priority: 320 | ||
phase: AUTHN | ||
priority: 210 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,8 @@ info: | |
url: http://higress.io/ | ||
email: [email protected] | ||
spec: | ||
priority: 10 | ||
phase: UNSPECIFIED_PHASE | ||
priority: 30 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ info: | |
url: http://higress.io/ | ||
email: [email protected] | ||
spec: | ||
phase: AUTHZ | ||
#priority: 330 | ||
phase: AUTHN | ||
priority: 60 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHN | ||
priority: 910 | ||
priority: 410 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ info: | |
email: [email protected] | ||
spec: | ||
phase: AUTHZ | ||
priority: 330 | ||
priority: 20 | ||
configSchema: | ||
openAPIV3Schema: | ||
type: object | ||
|