Phyton SDK and JWT "error_description":"OpenSSL unable to verify data
Anybody that could help me to get this solve please?
I'm getting the error "error":"invalid_grant","error_description":"OpenSSL unable to verify data:
I'm using Python SDK and I'm trying to authenticate with JWT.
def login(self, enterprise_id, user_id, rsa_private_key_file_sys_path, rsa_private_key_passphrase):
self.jwt_auth = JWTAuth(client_id=self.client_id,
client_secret=self.client_secret,
enterprise_id=enterprise_id,
jwt_key_id=JWT_KEY_ID,
rsa_private_key_file_sys_path=rsa_private_key_file_sys_path,
rsa_private_key_passphrase=rsa_private_key_passphrase,
store_tokens=self.store_tokens)
# box_device_name='test')
self.access_token = self.jwt_auth.authenticate_app_user(User(None, user_id))
# self.access_token = self.jwt_auth.authenticate_instance()
self.client = Client(self.jwt_auth)
-
Thanks for your suggestion. I have tried RS512 but still got the error massage. The whole exception as the following:[11:55]
BoxOAuthException:
Message: {"error":"invalid_grant","error_description":"OpenSSL unable to verify data: "}
Status: 400
URL: https://api.box.com/oauth2/token
Method: POST*
The app account info and user account info can be authenticated via our Java test application, but got this error via our Python test application.
Please sign in to leave a comment.
Comments
2 comments