@@ -63,8 +63,8 @@ Authenticate (get access/refresh token)
6363
6464If you navigate the user to the auth_url, the user will eventually get
6565redirected to http://YOUR_REDIRECT_URL?code=YOUR_AUTH_CODE. After
66- getting the code, you will be able to use the code to exchange for
67- access token and fresh token.
66+ getting the code, you will be able to use the code to exchange for an
67+ access token and refresh token.
6868
6969The SDK handles all the work for you; all you need to do is run:
7070
@@ -248,7 +248,7 @@ instead use an instance of `JWTAuth`.
248248 auth = JWTAuth(
249249 client_id = ' YOUR_CLIENT_ID' ,
250250 client_secret = ' YOUR_CLIENT_SECRET' ,
251- enterprise_token = ' YOUR_ENTERPRISE_TOKEN ' ,
251+ enterprise_id = ' YOUR_ENTERPRISE_ID ' ,
252252 rsa_private_key_file_sys_path = ' CERT.PEM' ,
253253 store_tokens = your_store_tokens_callback_method,
254254 )
@@ -272,7 +272,7 @@ These users can then be authenticated:
272272 ned_auth = JWTAuth(
273273 client_id = ' YOUR_CLIENT_ID' ,
274274 client_secret = ' YOUR_CLIENT_SECRET' ,
275- enterprise_token = ' YOUR_ENTERPRISE_TOKEN ' ,
275+ enterprise_id = ' YOUR_ENTERPRISE_ID ' ,
276276 rsa_private_key_file_sys_path = ' CERT.PEM' ,
277277 store_tokens = your_store_tokens_callback_method,
278278 )
@@ -282,6 +282,31 @@ These users can then be authenticated:
282282 Requests made with `ned_client ` (or objects returned from `ned_client `'s methods)
283283will be performed on behalf of the newly created app user.
284284
285+ Other Auth Options
286+ ------------------
287+
288+ For advanced uses of the SDK, two additional auth classes are provided:
289+
290+ - `CooperativelyManagedOAuth2 `: Allows multiple auth instances to share tokens.
291+ - `RemoteOAuth2 `: Allows use of the SDK on clients without access to your application's client secret. Instead, you
292+ provide a `retrieve_access_token ` callback. That callback should perform the token refresh, perhaps on your server
293+ that does have access to the client secret.
294+ - `RedisManagedOAuth2 `: Stores access and refresh tokens in Redis. This allows multiple processes (possibly spanning
295+ multiple machines) to share access tokens while synchronizing token refresh. This could be useful for a multiprocess
296+ web server, for example.
297+
298+ Other Network Options
299+ ---------------------
300+
301+ For more insight into the network calls the SDK is making, you can use the `LoggingNetwork ` class. This class logs
302+ information about network requests and responses made to the Box API.
303+
304+ .. code-block :: python
305+
306+ from boxsdk import Client
307+ from boxsdk.network.logging_network import LoggingNetwork
308+
309+ client = Client(oauth, network_layer = LoggingNetwork())
285310
286311 Contributing
287312------------
@@ -312,7 +337,7 @@ Run all tests using -
312337 The tox tests include code style checks via pep8 and pylint.
313338
314339The tox tests are configured to run on Python 2.6, 2.7, 3.3, 3.4, 3.5, and
315- PyPy 2.6 .
340+ PyPy (our CI is configured to run PyPy tests on PyPy 4.0) .
316341
317342
318343Support
0 commit comments