django-oidc-provider/oidc_provider/lib/utils
Tuomas Suutari 65538b0f7d utils.token: Use time.time to generate the timestamps
Use `time.time()` rather than `timezone.now()` for generating the unix
timestamps.  This avoids conversion between year-month-day-hh-mm-ss
formatted timestamp vs. unix timestamp and is therefore simpler and more
robust.

Add a test case for this too and amend test_token_endpoint, since it
used to mock timezone.now, but now it needs to mock time.time.
2016-12-07 14:22:20 +02:00
..
__init__.py Change name of the package. 2015-02-18 15:07:22 -03:00
common.py Revert "Fix timestamps computing in tokens" 2016-12-07 14:22:20 +02:00
oauth2.py Changed logging from error to debug 2016-03-17 14:31:41 -04:00
token.py utils.token: Use time.time to generate the timestamps 2016-12-07 14:22:20 +02:00