Skip to content

Fix credential extraction; never try to await non-awaitable object #345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Mar 12, 2025

If the result of the credential provider is awaitable (i.e. we check inspect.isawaitable now), then it's an async credential provider. Otherwise, we try to extract the value, and fail if it doesn't work.

This ensures that if the synchronous credential extraction fails, then we don't try to await a non-awaitable object.

Closes #344

@kylebarron kylebarron changed the title Fix credential extraction Fix credential extraction; never try to await non-awaitable object Mar 12, 2025
@kylebarron kylebarron enabled auto-merge (squash) March 12, 2025 20:21
@kylebarron kylebarron merged commit 152955a into main Mar 12, 2025
4 checks passed
@kylebarron kylebarron deleted the fix-credential-extraction2 branch March 12, 2025 20:22
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.

Better error handling for credential providers
1 participant