Skip to main content

OIDC Configuration

If OpenID Connect (OIDC) authentication is enabled, its details will be available through the /v1/.well-known/openid-configuration endpoint.

If a token is configured, the endpoint redirects to it.

Usage

The discovery endpoint accepts a GET request:

GET /v1/.well-known/openid-configuration

If there is an OIDC provider, the endpoint returns the following fields:

  • href: The reference to the client.
  • cliendID: The ID of the client.

If there is no OIDC provider, the endpoint returns a 404 HTTP status code.

Example

import weaviate

client = weaviate.connect_to_local()

open_id_configuration = client.get_open_id_configuration()

print(open_id_configuration)

finally:
client.close()

If OIDC is configured, the endpoint returns a document like this:

{
"href": "http://my-token-issuer/auth/realms/my-weaviate-usecase",
"cliendID": "my-weaviate-client"
}

Questions and feedback

If you have any questions or feedback, let us know in our user forum.