Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

Use refresh token with desktop Python script?

Answered
New post

Comments

1 comment

  • jmoldow_box

    Developer tokens can never be refreshed. They are meant for development/debugging only, and not for production use.

     

    If you wish to refresh, you must go through our auth process. This means doing either 3-leg OAuth2 (if you want real users to be able to use this program), or doing JWT auth with a service account (for a server-side automation) or an app user.

     

    See https://docs.box.com/docs/authentication for a description of these.

     

    Our official Python SDK http://pypi.python.org/pypi/boxsdk supports all of these types of authentication.

     

    When doing 3-leg OAuth2, you must always make use of a web browser to do the initial authentication, even if the application is not a web application.

    0
    Comment actions Permalink

Please sign in to leave a comment.