Skip to content

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

Closed

Description

@databyjp

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions