Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality for auto-revoking auth tokens (#224)
Auth objects can now be closed, which prevents them from being used to request new tokens. This will also revoke any existing tokens. Also introduces a `closing()` context manager method, which will auto-close the auth object on exit. Clients can use this to make sure that their tokens don't live longer than they need them for.
- Loading branch information
Showing
6 changed files
with
203 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
from __future__ import unicode_literals, absolute_import | ||
|
||
|
||
__version__ = '2.0.0a6' | ||
__version__ = '2.0.0a7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
addopts = --strict --showlocals -r a --tb=long | ||
xfail_strict = True | ||
junit_suite_name = boxsdk | ||
testpaths = test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters