airbytehq / airbytehq/airbyte

Low-code CDK: Allow configuration of param injection method in oauth authenticator

未關閉
#27,605 5 則留言 0 個 reaction 已指派 1 人 已被 @yevhenii-ldv 認領 在 GitHub 檢視
low-code team/marketplace team/triage type/enhancement
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。