cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Making OAuthScopesFilter priority more aligned with the OAuthRequestFilter one
Date Mon, 15 Feb 2016 12:53:56 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 4a433b51f -> c59eb2176


Making OAuthScopesFilter priority more aligned with the OAuthRequestFilter one


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/c59eb217
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c59eb217
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c59eb217

Branch: refs/heads/master
Commit: c59eb2176b204da60840fdfb07630429d4dd50c7
Parents: 4a433b5
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Feb 15 12:53:37 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Feb 15 12:53:37 2016 +0000

----------------------------------------------------------------------
 .../apache/cxf/rs/security/oauth2/filters/OAuthScopesFilter.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c59eb217/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthScopesFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthScopesFilter.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthScopesFilter.java
index 56ed41b..0164c10 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthScopesFilter.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthScopesFilter.java
@@ -30,6 +30,8 @@ import java.util.Set;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
+import javax.annotation.Priority;
+import javax.ws.rs.Priorities;
 import javax.ws.rs.container.ContainerRequestContext;
 import javax.ws.rs.container.ContainerRequestFilter;
 import javax.ws.rs.core.Context;
@@ -42,7 +44,7 @@ import org.apache.cxf.rs.security.oauth2.common.OAuthContext;
 import org.apache.cxf.rs.security.oauth2.common.OAuthPermission;
 import org.apache.cxf.rs.security.oauth2.utils.OAuthContextUtils;
 
-
+@Priority(Priorities.AUTHENTICATION + 1)
 public class OAuthScopesFilter implements ContainerRequestFilter {
 
     private static final Logger LOG = LogUtils.getL7dLogger(OAuthScopesFilter.class);


Mime
View raw message