Created
January 27, 2014 18:51
-
-
Save mattias-lidman/8655006 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from globusonline.graph.auth.goauth.storage import CassandraKeyStorage | |
import time | |
import json | |
from datetime import datetime | |
ks = CassandraKeyStorage(request) | |
ks.get_current_key() | |
keys = [ json.loads(key) for key in ks.cf.get('keys').values() ] | |
[ int(time.mktime(datetime.utcnow().timetuple())) > key['expiry'] for key in keys ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment