summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-11-29 23:45:18 +0000
committerGerrit Code Review <review@openstack.org>2022-11-29 23:45:18 +0000
commit5443a0f51bbd9060bf36ac37fd3f08d237adc04b (patch)
tree985c69fc9025e1a9a2b0e9e2a56705384f361a5f /doc
parent800c97357dd7090bd8bbd7ac711aade1808d6e91 (diff)
parent3780ed548ca033ee78d740443f9ba2baea0e2c4f (diff)
downloadzuul-5443a0f51bbd9060bf36ac37fd3f08d237adc04b.tar.gz
Merge "Unpin JWT and use integer IAT values"
Diffstat (limited to 'doc')
-rw-r--r--doc/source/authentication.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/authentication.rst b/doc/source/authentication.rst
index 7519f6468..5e0684c36 100644
--- a/doc/source/authentication.rst
+++ b/doc/source/authentication.rst
@@ -129,8 +129,8 @@ For example, in Python, and for an authenticator using the ``HS256`` algorithm:
>>> jwt.encode({'sub': 'user1',
'iss': <issuer_id>,
'aud': <client_id>,
- 'iat': time.time(),
- 'exp': time.time() + 300,
+ 'iat': int(time.time()),
+ 'exp': int(time.time()) + 300,
'zuul': {
'admin': ['tenant-one']
}