cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Adding names for the permissions
Date Thu, 28 Jan 2016 13:08:00 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 01c4b68b2 -> 219d31448


Adding names for the permissions


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

Branch: refs/heads/master
Commit: 219d31448f5082a932dbccf9398e2036d9679d4d
Parents: 01c4b68
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Jan 28 13:07:23 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Jan 28 13:07:23 2016 +0000

----------------------------------------------------------------------
 .../security/oauth2/common/OAuthDataProviderImpl.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/219d3144/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oauth2/common/OAuthDataProviderImpl.java
----------------------------------------------------------------------
diff --git a/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oauth2/common/OAuthDataProviderImpl.java
b/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oauth2/common/OAuthDataProviderImpl.java
index 28a3e70..20e952a 100644
--- a/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oauth2/common/OAuthDataProviderImpl.java
+++ b/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oauth2/common/OAuthDataProviderImpl.java
@@ -123,7 +123,7 @@ public class OAuthDataProviderImpl extends DefaultEHCacheCodeDataProvider
{
         List<OAuthPermission> permissions = new ArrayList<>();
         for (String requestedScope : requestedScopes) {
             if ("read_book".equals(requestedScope)) {
-                OAuthPermission permission = new OAuthPermission();
+                OAuthPermission permission = new OAuthPermission("read_book");
                 permission.setHttpVerbs(Collections.singletonList("GET"));
                 List<String> uris = new ArrayList<>();
                 String partnerAddress = "/secured/bookstore/books/*";
@@ -132,7 +132,7 @@ public class OAuthDataProviderImpl extends DefaultEHCacheCodeDataProvider
{
                 
                 permissions.add(permission);
             } else if ("create_book".equals(requestedScope)) {
-                OAuthPermission permission = new OAuthPermission();
+                OAuthPermission permission = new OAuthPermission("create_book");
                 permission.setHttpVerbs(Collections.singletonList("POST"));
                 List<String> uris = new ArrayList<>();
                 String partnerAddress = "/secured/bookstore/books/*";
@@ -141,7 +141,7 @@ public class OAuthDataProviderImpl extends DefaultEHCacheCodeDataProvider
{
                 
                 permissions.add(permission);
             } else if ("create_image".equals(requestedScope)) {
-                OAuthPermission permission = new OAuthPermission();
+                OAuthPermission permission = new OAuthPermission("create_image");
                 permission.setHttpVerbs(Collections.singletonList("POST"));
                 List<String> uris = new ArrayList<>();
                 String partnerAddress = "/secured/bookstore/image/*";
@@ -150,7 +150,7 @@ public class OAuthDataProviderImpl extends DefaultEHCacheCodeDataProvider
{
                 
                 permissions.add(permission);
             } else if ("read_balance".equals(requestedScope)) {
-                OAuthPermission permission = new OAuthPermission();
+                OAuthPermission permission = new OAuthPermission("read_balance");
                 permission.setHttpVerbs(Collections.singletonList("GET"));
                 List<String> uris = new ArrayList<>();
                 String partnerAddress = "/partners/balance/*";
@@ -159,7 +159,7 @@ public class OAuthDataProviderImpl extends DefaultEHCacheCodeDataProvider
{
                 
                 permissions.add(permission);
             } else if ("create_balance".equals(requestedScope)) {
-                OAuthPermission permission = new OAuthPermission();
+                OAuthPermission permission = new OAuthPermission("create_balance");
                 permission.setHttpVerbs(Collections.singletonList("POST"));
                 List<String> uris = new ArrayList<>();
                 String partnerAddress = "/partners/balance/*";
@@ -168,7 +168,7 @@ public class OAuthDataProviderImpl extends DefaultEHCacheCodeDataProvider
{
                 
                 permissions.add(permission);
             } else if ("read_data".equals(requestedScope)) {
-                OAuthPermission permission = new OAuthPermission();
+                OAuthPermission permission = new OAuthPermission("read_data");
                 permission.setHttpVerbs(Collections.singletonList("GET"));
                 List<String> uris = new ArrayList<>();
                 String partnerAddress = "/partners/data/*";


Mime
View raw message