-
Notifications
You must be signed in to change notification settings - Fork 823
Description
Overview
ibm-watson sdk has a PyJWT dependency and is not working with PyJWT version 2.0.0
Expected behavior
No error whit PyJWT 1.x.x versions
Actual behavior
jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().
/lib/site-packages/jwt/api_jwt.py, line 113, in decode
Stracktrace:
File "C:\Users\marvi.virtualenvs\vabmakersite-yxWtHWbQ\lib\site-packages\ibm_cloud_sdk_core\base_service.py", line 297, in prepare_request
self.authenticator.authenticate(request)
File "C:\Users\marvi.virtualenvs\vabmakersite-yxWtHWbQ\lib\site-packages\ibm_cloud_sdk_core\authenticators\iam_authenticator.py", line 106, in authenticate
bearer_token = self.token_manager.get_token()
File "C:\Users\marvi.virtualenvs\vabmakersite-yxWtHWbQ\lib\site-packages\ibm_cloud_sdk_core\jwt_token_manager.py", line 79, in get_token
self.paced_request_token()
File "C:\Users\marvi.virtualenvs\vabmakersite-yxWtHWbQ\lib\site-packages\ibm_cloud_sdk_core\jwt_token_manager.py", line 124, in paced_request_token
self._save_token_info(token_response)
\lib\site-packages\jwt\api_jwt.py", line 113, in decode
decoded = self.decode_complete(jwt, key, algorithms, options, **kwargs)
File "C:\Users\marvi.virtualenvs\vabmakersite-yxWtHWbQ\lib\site-packages\jwt\api_jwt.py", line 80, in decode_complete
'It is required that you pass in a value for the "algorithms" argument when calling decode().'
jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().
How to reproduce
import jwt
...
decoded_response = jwt.decode(access_token, verify=False)
SDK Version
Please provide the SDK version here.
Additional information:
{
"cryptography": {
"version": "3.3.1"
},
"implementation": {
"name": "CPython",
"version": "3.7.5"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyjwt": {
"version": "2.0.0"
}
}