commit | 645b3ae6235f0071d511a71e3ddf7dc8771f1459 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri Nov 29 19:25:46 2013 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Tue Feb 11 18:52:10 2014 +0000 |
tree | 93dfebb7e6c10d2d78676782fc28a1b121707831 | |
parent | 96d35f79c5be65c414b8c225d9c486255d41a1ba [diff] |
Increase token timeout to 15' Avoid continuous token encryption / decryption by allowing longer longevity up to 15' Change-Id: Ib8bff7b30819aa9c4c8d0dfe19da9ce7e9e24b47
diff --git a/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/TokenCipher.java b/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/TokenCipher.java index 9f4cbf6..7a71fa5 100644 --- a/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/TokenCipher.java +++ b/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/TokenCipher.java
@@ -36,7 +36,7 @@ private static final String ENC_ALGO = "AES"; private static final Logger log = org.slf4j.LoggerFactory .getLogger(OAuthCookieProvider.class); - public static final Long COOKIE_TIMEOUT = 60 * 1000L; + public static final Long COOKIE_TIMEOUT = 15 * 60 * 1000L; private SecretKey aesKey; private byte[] IV;