API, SSO, Box app and file upload
Hello all,
My apologies if this has already been addressed and answered. I have searched through the posts, but have not found anything. I am just diving into developing software to integrate with box.
Our enterprise is setup to use SSO to authenticate users. I am developing internal code to use the box API to, primarily, create folders and upload files, and I have created a box app in the developer area. What I am struggling with is authentication and getting OAuth tokens to enable authorized users to make use of the API.
I'm an experienced developer, but am just (like within the last week just) getting started with box, and I can't seem to get myself oriented with authentication here.
Any and all help is greatly appreciated.
Thanks.
-
Hi and ,
Thanks for posting to our forums! What parts were you having trouble with?
You, as the developer, should not have to worry about SSO at all. In the Standard OAuth2 flow (https://developer.box.com/v2.0/docs/oauth-20#section-3-the-user-experience) your app redirects the user to Box, where Box handles the authentication (including SSO). Once the user completes authentication, the user is redirected back to your redirect_uri with an appended authorization code, which you would then use in the request to obtain an access token.
In other words, if you know how to make the Standard OAuth2 flow work outside of SSO (for example, in your test environment), then the experience is no different for users who are using SSO.
Let me know if that helps or if I can clarify?
Thanks,
Jason
Please sign in to leave a comment.
Comments
2 comments