Unified · Split
| @@ -597,7 +597,7 @@ export default function AddOpenApiSource(props: { · 596 unmodified lines | ||
| 597 | 597 | setStartingOAuth(true); |
| 598 | 598 | const connectionId = openApiOAuthConnectionId(resolvedSourceId, selectedOAuth2Preset.flow); |
| 599 | 599 | const exit = await doStartOAuth({ |
| 600 | − params: { scopeId }, | |
| 600 | + params: { scopeId: oauthTokenTargetScope }, | |
| 601 | 601 | payload: { |
| 602 | 602 | endpoint: tokenUrl, |
| 603 | 603 | redirectUrl: tokenUrl, |
| @@ -642,7 +642,7 @@ export default function AddOpenApiSource(props: { · 38 unmodified lines | ||
| 642 | 642 | tokenScope: oauthTokenTargetScope, |
| 643 | 643 | run: async () => { |
| 644 | 644 | const exit = await doStartOAuth({ |
| 645 | − params: { scopeId }, | |
| 645 | + params: { scopeId: oauthTokenTargetScope }, | |
| 646 | 646 | payload: { |
| 647 | 647 | endpoint: authorizationUrl, |
| 648 | 648 | connectionId: openApiOAuthConnectionId(resolvedSourceId, selectedOAuth2Preset.flow), |
| @@ -696,7 +696,6 @@ export default function AddOpenApiSource(props: { · 47 unmodified lines | ||
| 696 | 696 | resolvedBaseUrl, |
| 697 | 697 | preview, |
| 698 | 698 | doStartOAuth, |
| 699 | − scopeId, | |
| 700 | 699 | identity.name, |
| 701 | 700 | resolvedSourceId, |
| 702 | 701 | selectedOAuth2Fingerprint, |
| @@ -447,7 +447,7 @@ export default function EditOpenApiSource(props: { · 446 unmodified lines | ||
| 447 | 447 | const tokenUrl = resolveOAuthUrl(oauth2.tokenUrl, source.config.baseUrl ?? ""); |
| 448 | 448 | if (oauth2.flow === "clientCredentials") { |
| 449 | 449 | const startOAuthExit = await doStartOAuth({ |
| 450 | − params: { scopeId: displayScope }, | |
| 450 | + params: { scopeId: targetScope }, | |
| 451 | 451 | payload: { |
| 452 | 452 | endpoint: tokenUrl, |
| 453 | 453 | redirectUrl: tokenUrl, |
| @@ -502,7 +502,7 @@ export default function EditOpenApiSource(props: { · 48 unmodified lines | ||
| 502 | 502 | ); |
| 503 | 503 | const issuerUrl = oauth2.issuerUrl ?? inferOAuthIssuerUrl(authorizationUrl); |
| 504 | 504 | const startOAuthExit = await doStartOAuth({ |
| 505 | − params: { scopeId: displayScope }, | |
| 505 | + params: { scopeId: targetScope }, | |
| 506 | 506 | payload: { |
| 507 | 507 | endpoint: authorizationUrl, |
| 508 | 508 | connectionId, |