Low-code CDK: Allow configuration of param injection method in oauth authenticator
- 主要語言
- Python
- 星號
- 22.1k
- 分支
- 5.3k
- PR 合併指標
- PR 指標待擷取
描述
### What area the feature impact?
None
### Revelant Information
Currently the base oauth authenticator class is passing parameters to the token refresh endpoint as form-encoded body.
As this is not always the right approach, the oauth authenticator should be extended to allow sending the parameters as json body or as request parameters as well.
YAML extension:
```
OAuthAuthenticator:
properties:
request_type:
type: string
enum: [request_parameter, body_data, body_json]
```
The new parameter is optional, if not set it behaves as if it's set to `body_data`.
If it's set to `body_json`, the payload is encoded as a json body and the content-type header is set accordingly.
If it's set to `request_parameter`, the payload is encoded as query parameters.
In the UI, there is a dropdown that allows the user to configure this
貢獻指南
評估
這個 Issue 還沒有評估資料。