You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error is thrown in the _create_session method because the used weviate instance has an OIDC configuration but no auth_client_secret was provided.
I also saw that a previous issue (#177) already adressed this, but the proposed solution didn't fix it.
Proposed Solution
The case when an Authorization header is present in the additional_headers dict can be handled in the same way as the newly introduced AuthApiKey at the top of the _create_session. If the header is present in the private _headers dict of the BaseConnection, a new session can be created and the method can be exited.
I can also provide a PR if wanted.
The text was updated successfully, but these errors were encountered:
fixesweaviate#265
Test 'test_auth_header_with_catchall_proxy' was modified because the
OIDC configuration endpoint is not called anymore when the
authentication is provided via the 'additional_headers' parameter. Apart
from 'ApiAuthKey' any other auth method can be used.
Bug Description
When creating a new client, setting the
Authorization
header via theadditional_headers
parameter is not working:The following error is thrown:
This error is thrown in the _create_session method because the used weviate instance has an OIDC configuration but no
auth_client_secret
was provided.I also saw that a previous issue (#177) already adressed this, but the proposed solution didn't fix it.
Proposed Solution
The case when an
Authorization
header is present in theadditional_headers
dict can be handled in the same way as the newly introducedAuthApiKey
at the top of the _create_session. If the header is present in the private_headers
dict of theBaseConnection
, a new session can be created and the method can be exited.I can also provide a PR if wanted.
The text was updated successfully, but these errors were encountered: