diff options
author | Zuul <zuul@review.opendev.org> | 2022-11-29 23:45:18 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-11-29 23:45:18 +0000 |
commit | 5443a0f51bbd9060bf36ac37fd3f08d237adc04b (patch) | |
tree | 985c69fc9025e1a9a2b0e9e2a56705384f361a5f /doc | |
parent | 800c97357dd7090bd8bbd7ac711aade1808d6e91 (diff) | |
parent | 3780ed548ca033ee78d740443f9ba2baea0e2c4f (diff) | |
download | zuul-5443a0f51bbd9060bf36ac37fd3f08d237adc04b.tar.gz |
Merge "Unpin JWT and use integer IAT values"
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/authentication.rst | 4 |
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'] } |