This is a demo application that authenticates against Box.com and then shows the files and folders for the authenticated user.
Retrieve your Box.com credentials
- Login to your Box account and got to https://app.box.com/developers/console
- Create a new application using OAuth2.
- Copy the Client ID and Client Secret.
After cloning the source
- Create a Python virtual environment
python -m venv .venv . .venv/bin/activate
- Install the required dependencies
pip install -r requirements.txt
- Create a instance/settings.py file and add your CLIENT_ID, CLIENT_SECRET and REDIRECT_URI.
CLIENT_ID='client_id'
CLIENT_SECRET='client_secret'
REDIRECT_URI='http://localhost:5000/box-auth'
- Run the application
flask --app flaskr run --debug
- Open browser at http://localhost:5000/index.html