JWT auth using sub user_id, but still getting "unauthorized_client" error.
Greetings,
I'm looking to use JWT auth via Python to access Box folders. When building my assertion, I am specifying box_sub_type as user as opposed to enterprise. I'm getting the following error:
{"error":"unauthorized_client","error_description":"This app is not authorized by the enterprise admin"}
Is this normal behavior? Just confirming - I was kind of surprised to see that for a call that I believe should only affect my own resources, not the overall Enterprise resources. I'm a little worried that authorizing the app would allow me to use an enterprise assertion, which I don't want the right to do - I just want to affect my own personal resources for this app.
-
Once you have the JWTAuth object initialized, you can call auth.authenticate_app_user(client.user(app_user_id)).
It looks like we don't use the enterprise_id unless you authenticate as the enterprise. Since you're not doing that, if you'd like, you can pass enterprise_id=None to the constructor.
Please sign in to leave a comment.
Comments
1 comment