cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmo...@apache.org
Subject svn commit: r1037650 - /cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/oauth_1.0a/client/src/main/java/org/apache/cxf/auth/oauth/demo/client/controllers/AuthorizeResourceOwnerController.java
Date Mon, 22 Nov 2010 09:51:53 GMT
Author: lmoren
Date: Mon Nov 22 09:51:53 2010
New Revision: 1037650

URL: http://svn.apache.org/viewvc?rev=1037650&view=rev
Log:
- added scope-permission authorization style
- support for wildcards in scope url

Modified:
    cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/oauth_1.0a/client/src/main/java/org/apache/cxf/auth/oauth/demo/client/controllers/AuthorizeResourceOwnerController.java

Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/oauth_1.0a/client/src/main/java/org/apache/cxf/auth/oauth/demo/client/controllers/AuthorizeResourceOwnerController.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/oauth_1.0a/client/src/main/java/org/apache/cxf/auth/oauth/demo/client/controllers/AuthorizeResourceOwnerController.java?rev=1037650&r1=1037649&r2=1037650&view=diff
==============================================================================
--- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/oauth_1.0a/client/src/main/java/org/apache/cxf/auth/oauth/demo/client/controllers/AuthorizeResourceOwnerController.java
(original)
+++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/oauth_1.0a/client/src/main/java/org/apache/cxf/auth/oauth/demo/client/controllers/AuthorizeResourceOwnerController.java
Mon Nov 22 09:51:53 2010
@@ -48,8 +48,9 @@ public class AuthorizeResourceOwnerContr
         }
 
         response
-            .sendRedirect(
-                resourceOwnerAuthorizationEndpoint + "?oauth_token=" + oauthToken + "&x_oauth_scope="
-                    + "read_info,modify_info");
+                .sendRedirect(
+                        new StringBuilder().append(resourceOwnerAuthorizationEndpoint).append
+                                ("?oauth_token=").append(oauthToken).append("&x_oauth_scope=").append("/resources/person/*")
+                                .append("&x_oauth_permission=").append("read_info,modify_info").toString());
     }
 }
\ No newline at end of file



Mime
View raw message