Skip to content

fix(starlette_client): remove default= keyword from config.get calls#770

Open
aliaksei-protchanka wants to merge 1 commit into
authlib:mainfrom
aliaksei-protchanka:patch-1
Open

fix(starlette_client): remove default= keyword from config.get calls#770
aliaksei-protchanka wants to merge 1 commit into
authlib:mainfrom
aliaksei-protchanka:patch-1

Conversation

@aliaksei-protchanka

Copy link
Copy Markdown

Authlib's Starlette integration was calling self.config.get(conf_key, default=None), which raises a TypeError when config is a plain dict. Changed all occurrences to use the positional form self.config.get(conf_key, None) so that both dicts and Config objects work seamlessly.

DO NOT SEND ANY SECURITY FIX HERE. Please read "Security Reporting" section
on README.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes

  • No

  • You consent that the copyright of your pull request source code belongs to Authlib's author.

@azmeuk

azmeuk commented May 13, 2025

Copy link
Copy Markdown
Member

Thank you for your contribution.

I am not sure why, but your patch causes the CI to fail.
I can reproduce the error locally, without this patch the test suite stays green.

Authlib's Starlette integration was calling self.config.get(conf_key, default=None), which raises a TypeError when config is a plain dict. Changed all occurrences to use the positional form self.config.get(conf_key, None) so that both dicts and Config objects work seamlessly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants