I am fairly new at box dev and JWT, so I had box generate a keypair for me, but the cert.pem file
is run as a nonetype object. Can someone help me with this error/ how to authenticate using JWT in Python
(I've already used the SDK's instructions)
Here is the error message:
Traceback (most recent call last):
File "/Users/zperis/PycharmProjects/AutoBox/ImportTest.py", line 11, in
rsa_private_key_file_sys_path='/Users/zperis/Documents/cert.pem',
TypeError: 'NoneType' object is not callable
Here is my Source Code:
from boxsdk import JWTAuth
auth = JWTAuth(
client_id='*******',
client_secret='*********',
enterprise_id='*******',
jwt_key_id= '********',
rsa_private_key_file_sys_path='/Users/zperis/Documents/cert.pem',
#store_tokens=your_store_tokens_callback_method,
)
access_token = auth.authenticate_instance()
from boxsdk import Client
client = Client(auth)
