Perform API search method with JWT
I need the ID of a folder and then use that to upload a file. Can I do this without requiring my user to authenticate? I just need the ID so I can upload a file to my dropbox via PHP (no available SDK). My APP is set to use server side auth with JWT and I've created a public/private keypair. The only example I can find forces me to login to grant access but I want to grab the ID and upload without forcing my users to have a box.com account.
-
Hi , great question!
You're on the right track - Server Auth with JWT is the way to go if you don't want your users to explicitly authenticate to box. However, the idea behind Server Auth is that you create App Users on the box side, which you'd map to users of *your* app (assuming you have users on your app). Then, any uploads for app users could be done with tokens for those users. In that case, you could either upload into folder ID 0 (your user's root folder) or collaborate the user into a shared folder owned by another user - however you want to do it!
This idea of having "app users" is what we call "Building on Box Platform":
One of the ways developers can use the Box Platform APIs is to white-label functionality from the Box web and mobile applications in another software application.
https://developer.box.com/v2.0/docs/getting-started-box-platform
Hope that helps!
Thanks,
Jason
Please sign in to leave a comment.
Comments
1 comment