fix(python): Remove oauth-token-override config flag #11113
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Refs #11077
Removes the
oauth-token-overrideconfig flag from the Python SDK generator. OAuth token override is now always enabled for OAuth client credentials flows, allowing users to authenticate with eitherclient_id/client_secretOR a pre-generated bearer token directly via thetokenparameter without any configuration.Link to Devin run: https://app.devin.ai/sessions/d9dea7643e314c6691e957657a1252ca
Requested by: [email protected] (@tjb9dc)
Changes Made
oauth_token_overridefield fromSDKCustomConfigincustom_config.pyroot_client_generator.pyto always enable token override when OAuth client credentials is detectedreadme_snippet_builder.pyto detect OAuth client credentials from IR instead of config flag (added_check_oauth_client_credentialshelper method)oauth_token_overrideparameter fromgenerator_cli.pyandsdk_generator.pytoken-overrideseed fixture directories (behavior now merged into default fixtures)oauth-client-credentialsandoauth-client-credentials-environment-variablesfixturesversions.ymlwith PATCH changelog entryTesting
pnpm run check)Human Review Checklist
_check_oauth_client_credentialsmethod inreadme_snippet_builder.pycorrectly identifies OAuth client credentials from IRtokenORclient_id/client_secretare providedclient.pyfiles