Skip to content
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

Allow Union[str, AuthApiKey, AuthOIDCxxx, ...] as auth_credentials inputs in connection helper functions #996

Open
databyjp opened this issue Apr 3, 2024 · 0 comments
Labels
enhancement New feature or request usability

Comments

@databyjp
Copy link
Contributor

databyjp commented Apr 3, 2024

Propose connect_to_xx functions to optionally, take the Weaviate API key as strings

So

client = weaviate.connect_to_wcs(
    cluster_url="wcs-url-here",
    auth_credentials=weaviate.auth.AuthApiKey("key-here"),
)

Could also be:

client = weaviate.connect_to_wcs(
    cluster_url="wcs-url-here",
    auth_credentials="key-here",
)

This would be also applicable to connect_to_local also.

@databyjp databyjp added enhancement New feature or request usability labels Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request usability
Projects
None yet
Development

No branches or pull requests

1 participant