-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Labels
Description
- [✔︎] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
Description of the Issue
Hi I'm currently using Box sdk and I'm trying to authenticate App user and make calls with it. I've followed this instruction but this couldn't help.
Steps to Reproduce
・I tried like below, however I got an error TypeError: __init__() missing 1 required positional argument: 'enterprise_id', so although I thought it is not necessary, I added enterprise_id = None as arg, then
・next I got an error like the screenshot I added, which is saying Cannot obstain user token based on enterprise configuration for your app
Could you help me out how to get around these issues?
app_user = service_account_client.user(user_id='APP_USER_ID')
app_user_auth = JWTAuth(
client_id='YOUR_CLIENT_ID',
client_secret='YOUR_CLIENT_SECRET',
user=app_user,
jwt_key_id='YOUR_JWT_KEY_ID',
rsa_private_key_file_sys_path='CERT.PEM',
rsa_private_key_passphrase='PASSPHRASE',
store_tokens=your_store_tokens_callback_method,
)
app_user_auth.authenticate_user()
app_user_client = Client(app_user_auth)Screenshots
Versions Used
Python SDK: 3.6.8
Python: ==2.11.0
Reactions are currently unavailable
