[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add the function to hide header for key-auth plugin #6670

Merged
merged 17 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' of https://github.com/apache/apisix into key-au…
…th-plugin-uograde

Conflicts:
	docs/en/latest/plugins/key-auth.md
	docs/zh/latest/plugins/key-auth.md
  • Loading branch information
bin-ya committed Mar 21, 2022
commit 9be27cc2286d4d61853f210209b7be4cb7e8b558
3 changes: 1 addition & 2 deletions docs/en/latest/plugins/key-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ For route side:
| Name | Type | Requirement | Default | Valid | Description |
| ---- | ------ | ----------- | ------- | ----- | ---------------------------------------------------------------------------- |
| header | string | optional | apikey | | the header we get the key from |
| query | string | optional | apikey | | the querystring we get the key from, which priority is lower than header |
| hide_credentials | bool | optional | false | | Whether to pass the apikey request headers to the upsream. |
| query | string | optional | apikey | | the query string we get the key from, which priority is lower than `header` |

## How To Enable

Expand Down
3 changes: 1 addition & 2 deletions docs/zh/latest/plugins/key-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ router 端配置:
| 名称 | 类型 | 必选项 | 默认值 | 有效值 | 描述 |
| ---- | ------ | ------ | ------ | ------ | ------------------------------------------------------------------------------------------------------------- |
| header | string | 可选| apikey | | 设置我们从哪个 header 获取 key。 |
| query | string | 可选 | apikey | | 设置我们从哪个 querystring 获取 key,优先级低于header |
| hide_credentials | bool | 可选 | false | | 是否将 apikey 请求头传递给 upstream。 |
| query | string | 可选 | apikey | | 设置我们从哪个 query string 获取 key,优先级低于 `header` |

## 如何启用

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.