box-python-sdk icon indicating copy to clipboard operation
box-python-sdk copied to clipboard

example.py oauth bottle doesn't complete auth flow

Open prexer opened this issue 8 years ago • 1 comments

I'm building a raspberry pi home-security system. I want to get my auth and refresh tokens and store them away into a keyfile, but I'm doing this all from cmd-line. I thought the demo example.py program might do that, but it appears not to work, and not have enough instructions to explain where it is failing. It would be great if there was a way to have it get the auth and refresh tokens, and then have a #todo to implement code to store them somewhere.

One thing I noticed. The bottle library seems to kick off the auth for the app just fine, but then fails with a "There seems to be a problem with your app." I suspect it's the redirect_uri that isn't working, since it might be trying to get back to my laptop or raspberry pi device, but the error msg it gives isn't clear, and the instructions on how to use the example.py or the auth.py don't really explain the 5 steps to hook that last mile up.

This may just need a little bit of documentation in the demo folder or the example.py file about how to set it up.

prexer avatar Apr 20 '17 02:04 prexer

The redirect_uri field in your app's configuration needs to be set to http://localhost.

This appears to be a change on Box's side - this worked when the demo was written, but it appears not to work anymore for new apps.

I'll close this after documenting this in the demo folder.

Jeff-Meadows avatar Apr 24 '17 16:04 Jeff-Meadows

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

stale[bot] avatar Dec 19 '22 20:12 stale[bot]

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

stale[bot] avatar Jan 20 '23 11:01 stale[bot]

This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Python SDK and feel free to open another PR/issue at any time.

stale[bot] avatar Jan 27 '23 13:01 stale[bot]