Skip to content

Commit

Permalink
Update the documents for authz-keycloak plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
foogao committed Oct 21, 2024
1 parent 6fd61f9 commit af600a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/en/latest/plugins/authz-keycloak.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ curl --location --request POST 'http://127.0.0.1:9080/api/token' \
--data-urlencode 'password=<Password>'
```

Note: For the value of the `Content-Type` header, it also support the parameterized form which defind in the section [3.1.1.5](https://www.rfc-editor.org/rfc/rfc7231#section-3.1.1.5) of [RFC7231](https://www.rfc-editor.org/rfc/rfc7231). For example `Content-Type: application/json; charset=utf-8`.

## Enable Plugin

The example below shows how you can enable the `authz-keycloak` Plugin on a specific Route. `${realm}` represents the realm name in Keycloak.
Expand Down
2 changes: 2 additions & 0 deletions docs/zh/latest/plugins/authz-keycloak.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ description: 本文介绍了关于 Apache APISIX `authz-keycloak` 插件的基
--data-urlencode 'password=<Password>'
```

注意:对于`Content-Type`头的值,此插件也支持参数化的形式(具体定义在[RFC7231](https://www.rfc-editor.org/rfc/rfc7231)的第[3.1.1.5](https://www.rfc-editor.org/rfc/rfc7231#section-3.1.1.5)小节)。具体示例`Content-Type: application/json; charset=utf-8`

## 如何启用

以下示例为你展示了如何在指定 Route 中启用 `authz-keycloak` 插件,其中 `${realm}` 是 Keycloak 中的 `realm` 名称:
Expand Down

0 comments on commit af600a4

Please sign in to comment.