Skip to content

Fix: Use basic authentication in AntflyClient - #1

Merged
ajroetker merged 1 commit into
mainfrom
fix/basic-authentication
Sep 14, 2025
Merged

Fix: Use basic authentication in AntflyClient#1
ajroetker merged 1 commit into
mainfrom
fix/basic-authentication

Conversation

@ajroetker

Copy link
Copy Markdown
Contributor

The AntflyClient was incorrectly using a token-based AuthenticatedClient for handling username and password credentials. This was causing authentication to fail.

This change corrects the client's __init__ method to use the standard Client and pass the username and password as a basic auth tuple via httpx_args. This aligns with the API's requirements, which, as defined in openapi.yaml, uses HTTP Basic Authentication.

The unused AuthenticatedClient import has also been removed.

The AntflyClient was incorrectly using a token-based `AuthenticatedClient` for handling username and password credentials. This was causing authentication to fail.

This change corrects the client's `__init__` method to use the standard `Client` and pass the username and password as a basic auth tuple via `httpx_args`. This aligns with the API's requirements, which, as defined in `openapi.yaml`, uses HTTP Basic Authentication.

The unused `AuthenticatedClient` import has also been removed.
@ajroetker
ajroetker merged commit 2e6b26c into main Sep 14, 2025
0 of 5 checks passed
@ajroetker
ajroetker deleted the fix/basic-authentication branch September 14, 2025 21:38
dovinmu pushed a commit to dovinmu/antfly-python that referenced this pull request Jan 8, 2026
Bug antflydb#1: Fixed imports from non-existent api_table module
- Changed imports to use correct paths: data_operations/batch_write,
  data_operations/lookup_key, and table_management/ for table ops

Bug antflydb#2: Fixed cast() misuse with BatchRequestInserts
- cast() only hints types, doesn't convert data
- Now properly creates BatchRequestInserts and
  BatchRequestInsertsAdditionalProperty model instances from dicts

Bug antflydb#3: Removed query method referencing non-existent endpoints
- query_table and global_query don't exist in generated code
- QueryRequest and QueryRequestFullTextSearch models don't exist
- Removed the query method until proper endpoints are available
@dovinmu dovinmu mentioned this pull request Jan 9, 2026
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.

1 participant