This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push: new d6be151 fix: pass 'maxInactiveInterval' though overloaded methods (#667) d6be151 is described below commit d6be151f1902e50021cc806fc1ddf5673a50fa7f Author: ParanoidUser <pilgrim.why...@gmail.com> AuthorDate: Fri May 1 01:42:41 2020 -0700 fix: pass 'maxInactiveInterval' though overloaded methods (#667) Specify custom session timeout for javax.servlet.http.HttpSession --- .../main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java index 6064d00..a2b64c0 100644 --- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java +++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java @@ -166,13 +166,13 @@ public final class OAuthUtils { return setSessionToken(mc, 0); } public static String setSessionToken(MessageContext mc, int maxInactiveInterval) { - return setSessionToken(mc, generateRandomTokenKey()); + return setSessionToken(mc, generateRandomTokenKey(), maxInactiveInterval); } public static String setSessionToken(MessageContext mc, String sessionToken) { return setSessionToken(mc, sessionToken, 0); } public static String setSessionToken(MessageContext mc, String sessionToken, int maxInactiveInterval) { - return setSessionToken(mc, sessionToken, null, 0); + return setSessionToken(mc, sessionToken, null, maxInactiveInterval); } public static String setSessionToken(MessageContext mc, String sessionToken, String attribute, int maxInactiveInterval) {