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
Hi and thanks for your work.
I connect to the CCat via custom auth handler (JWT), but this library does not allow to connect with an adding token.
If I try to connect, I get the following error:
ERROR - Handshake status 403 Forbidden -+-+- {'date': 'Mon, 03 Feb 2025 21:30:49 GMT', 'content-length': '0', 'content-type': 'text/plain', 'connection': 'close'} -+-+- b'' - goodbye
INFO - Connection with id admin closed with code None: None
I think the problem is that ws_connect method in cat_client.py does not accept arguments, which could extend url:
🐛 Describe the bug
Hi and thanks for your work.
I connect to the CCat via custom auth handler (JWT), but this library does not allow to connect with an adding token.
If I try to connect, I get the following error:
I think the problem is that
ws_connect
method incat_client.py
does not accept arguments, which could extendurl
:I have found a workaround to solve this issue:
So, if argument
auth_key
is provided inccat.Config
,url
is extended with the needed string plus JWT.I will do a PR to propose this little fix.
Versions
admin >>main U:2 ?:2 >>p❳ .venv >~/Debian/cattest>python --version && pip freeze
Python 3.11.2
annotated-types==0.7.0
certifi==2025.1.31
charset-normalizer==3.4.1
cheshire_cat_api==1.4.8
idna==3.10
pydantic==2.10.6
pydantic_core==2.27.2
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
requests==2.32.3
six==1.17.0
typing_extensions==4.12.2
urllib3==2.0.7
websocket-client==1.8.0
The text was updated successfully, but these errors were encountered: