Creating folders and uploading a file without using a web browser
Posted
by
Ashpak
on Stack Overflow
See other posts from Stack Overflow
or by Ashpak
Published on 2013-11-11T21:01:23Z
Indexed on
2013/11/12
3:55 UTC
Read the original article
Hit count: 126
box-api
I am using the Java Api
We have a web application wherein we want our file to be uploaded on an on_click even on some submit button. We don't want the browser to prompt us to enter the username and password to get the access token. Instead, we can provide the username and the password through the code so that we get the access token and the file will be uploaded directly.
Right now, OAuth 2 requires that we enter the username and password to be entered through the browser.
Reading through the post, I see that we can authenticate for the first time, obtain a refresh token and then keep on refreshing that token periodically. But our application requirements does not allow for this work-flow.
Is there any way to automate the process of entering the user credentials using Java code. or Is there any library that will keep the browser away from the process.
© Stack Overflow or respective owner