The following error was sent when I used the following code for JWT authentication testing:
from boxsdk import JWTAuth, Client
auth = JWTAuth.from_settings_file('/app/scripts/0_vbo9ncv9_config.json')
client = Client(auth)
service_account = client.user().get()
print(f'Service Account user ID is {service_account.id}')
boxsdk.exception.BoxOAuthException:
Message: Please check the 'sub' claim. The 'sub' specified is invalid.
Status: 400
The following error was sent when I used the following code for JWT authentication testing: from boxsdk import JWTAuth, Client
auth = JWTAuth.from_settings_file('/app/scripts/0_vbo9ncv9_config.json') client = Client(auth) service_account = client.user().get() print(f'Service Account user ID is {service_account.id}')
boxsdk.exception.BoxOAuthException: Message: Please check the 'sub' claim. The 'sub' specified is invalid. Status: 400
Versions Used
Python SDK: latest Python: Python 3.7.16