73e6c40
@@ -206,7 +206,7 @@
if not token['refreshable']:
return None
- if token['refreshable_until'] and \
+ if token.get('refreshable_until') and \
token['refreshable_until'] >= int(time.time()):
If refreshable_until=None, it ends up not getting stored in the token information table. This will make sure we will correctly interpret that as "no expiry".
Fixes: #264 Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com
LGTM
+1
Commit 62f38c4 fixes this pull-request
Pull-Request has been merged by puiterwijk@redhat.com
If refreshable_until=None, it ends up not getting stored in the token
information table.
This will make sure we will correctly interpret that as "no expiry".
Fixes: #264
Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com