You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/connect-react/README.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,9 +153,36 @@ type ComponentFormProps = {
153
153
sdkResponse: unknown[] | unknown | undefined;
154
154
/** Whether to show show errors in the form. Requires sdkErrors to be set. */
155
155
enableDebugging?: boolean;
156
+
/** OAuth app ID configuration for specific apps.
157
+
* Maps app name slugs to their corresponding OAuth app IDs. */
158
+
oauthAppConfig?: Record<string, string>;
156
159
};
157
160
```
158
161
162
+
### OAuth App Configuration
163
+
164
+
To connect to an OAuth app using your own OAuth client, you can specify custom OAuth app IDs for each app using the `oauthAppConfig` prop:
165
+
166
+
```tsx
167
+
const oauthAppConfig = {
168
+
github: "oa_xxxxxxx",
169
+
google_sheets: "oa_xxxxxxx",
170
+
slack: "oa_xxxxxxx",
171
+
};
172
+
173
+
<ComponentFormContainer
174
+
userId={userId}
175
+
componentKey="slack-send-message-to-channel"
176
+
configuredProps={configuredProps}
177
+
onUpdateConfiguredProps={setConfiguredProps}
178
+
oauthAppConfig={oauthAppConfig}
179
+
/>;
180
+
```
181
+
182
+
This allows you to use your own OAuth applications forspecific integrations, providing better control over branding and permissions. Read how to configure OAuth clientsin Pipedream here: [https://pipedream.com/docs/connect/managed-auth/oauth-clients](https://pipedream.com/docs/connect/managed-auth/oauth-clients).
183
+
184
+
**Note**: OAuth app IDs are not sensitive, and are safe to expose in the client.
185
+
159
186
## Customization
160
187
161
188
Style individual components using the `CustomizeProvider` and a `CustomizationConfig`.
@@ -164,7 +191,7 @@ Style individual components using the `CustomizeProvider` and a `CustomizationCo
0 commit comments