commit | 1cba0f834d18208fac464843b13501768910af1a | [log] [tgz] |
---|---|---|
author | Jon Wayne Parrott <jonwayne@google.com> | Tue Sep 12 10:21:02 2017 -0700 |
committer | GitHub <noreply@github.com> | Tue Sep 12 10:21:02 2017 -0700 |
tree | afbe9706a30c72774eafce2b1007286cfae146c3 | |
parent | 4460a969485b8ad62a6e44bacbf8649387e2394a [diff] [blame] |
Fix App Engine's expiration calculation (#197)
diff --git a/google/auth/app_engine.py b/google/auth/app_engine.py index 6dc8712..fa13f8e 100644 --- a/google/auth/app_engine.py +++ b/google/auth/app_engine.py
@@ -114,7 +114,7 @@ # pylint: disable=unused-argument token, ttl = app_identity.get_access_token( self._scopes, self._service_account_id) - expiry = _helpers.utcnow() + datetime.timedelta(seconds=ttl) + expiry = datetime.datetime.utcfromtimestamp(ttl) self.token, self.expiry = token, expiry