| @@ -597,7 +597,7 @@ export default function AddOpenApiSource(props: { · 596 unmodified lines |
| 597 | setStartingOAuth(true); | 597 | setStartingOAuth(true); |
| 598 | const connectionId = openApiOAuthConnectionId(resolvedSourceId, selectedOAuth2Preset.flow); | 598 | const connectionId = openApiOAuthConnectionId(resolvedSourceId, selectedOAuth2Preset.flow); |
| 599 | const exit = await doStartOAuth({ | 599 | const exit = await doStartOAuth({ |
| 600 | params: { scopeId }, | 600 | params: { scopeId: oauthTokenTargetScope }, |
| 601 | payload: { | 601 | payload: { |
| 602 | endpoint: tokenUrl, | 602 | endpoint: tokenUrl, |
| 603 | redirectUrl: tokenUrl, | 603 | redirectUrl: tokenUrl, |
| @@ -642,7 +642,7 @@ export default function AddOpenApiSource(props: { · 38 unmodified lines |
| 642 | tokenScope: oauthTokenTargetScope, | 642 | tokenScope: oauthTokenTargetScope, |
| 643 | run: async () => { | 643 | run: async () => { |
| 644 | const exit = await doStartOAuth({ | 644 | const exit = await doStartOAuth({ |
| 645 | params: { scopeId }, | 645 | params: { scopeId: oauthTokenTargetScope }, |
| 646 | payload: { | 646 | payload: { |
| 647 | endpoint: authorizationUrl, | 647 | endpoint: authorizationUrl, |
| 648 | connectionId: openApiOAuthConnectionId(resolvedSourceId, selectedOAuth2Preset.flow), | 648 | connectionId: openApiOAuthConnectionId(resolvedSourceId, selectedOAuth2Preset.flow), |
| @@ -696,7 +696,6 @@ export default function AddOpenApiSource(props: { · 47 unmodified lines |
| 696 | resolvedBaseUrl, | 696 | resolvedBaseUrl, |
| 697 | preview, | 697 | preview, |
| 698 | doStartOAuth, | 698 | doStartOAuth, |
| 699 | scopeId, | | |
| 700 | identity.name, | 699 | identity.name, |
| 701 | resolvedSourceId, | 700 | resolvedSourceId, |
| 702 | selectedOAuth2Fingerprint, | 701 | selectedOAuth2Fingerprint, |