You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ve...@apache.org on 2016/04/07 20:38:18 UTC
incubator-ranger git commit: RANGER-886: The absence of the
expiration time should be interpreted as no expiration (Larry McCay via
Velmurugan Periasamy)
Repository: incubator-ranger
Updated Branches:
refs/heads/master 093ea3da7 -> 9c4d8e9cd
RANGER-886: The absence of the expiration time should be interpreted as no expiration (Larry McCay via Velmurugan Periasamy)
Signed-off-by: Velmurugan Periasamy <ve...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/9c4d8e9c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/9c4d8e9c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/9c4d8e9c
Branch: refs/heads/master
Commit: 9c4d8e9cd060747468a94233b0efa30f11ac055b
Parents: 093ea3d
Author: Velmurugan Periasamy <ve...@apache.org>
Authored: Wed Apr 6 15:01:07 2016 -0700
Committer: Velmurugan Periasamy <ve...@apache.org>
Committed: Thu Apr 7 11:36:43 2016 -0700
----------------------------------------------------------------------
.../ranger/security/web/filter/RangerSSOAuthenticationFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/9c4d8e9c/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerSSOAuthenticationFilter.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerSSOAuthenticationFilter.java b/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerSSOAuthenticationFilter.java
index b5a5268..9d5680d 100644
--- a/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerSSOAuthenticationFilter.java
+++ b/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerSSOAuthenticationFilter.java
@@ -393,7 +393,7 @@ public class RangerSSOAuthenticationFilter implements Filter {
boolean valid = false;
try {
Date expires = jwtToken.getJWTClaimsSet().getExpirationTime();
- if (expires != null && new Date().before(expires)) {
+ if (expires == null || new Date().before(expires)) {
if(LOG.isDebugEnabled())
LOG.debug("SSO token expiration date has been " + "successfully validated");
valid = true;