cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [3/3] cxf git commit: Prototyping an oauth2 code auth supplier
Date Wed, 08 Apr 2015 16:25:00 GMT
Prototyping an oauth2 code auth supplier


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

Branch: refs/heads/3.0.x-fixes
Commit: 51bc2f2e412a2f4d1115681f892eb14009d52558
Parents: ac399de
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Apr 8 17:24:33 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Apr 8 17:24:33 2015 +0100

----------------------------------------------------------------------
 .../cxf/rs/security/oauth2/client/BearerAuthSupplier.java    | 8 +++++---
 .../cxf/rs/security/oauth2/client/CodeAuthSupplier.java      | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/51bc2f2e/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/BearerAuthSupplier.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/BearerAuthSupplier.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/BearerAuthSupplier.java
index 1ad0722..475c2cb 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/BearerAuthSupplier.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/BearerAuthSupplier.java
@@ -119,10 +119,12 @@ public class BearerAuthSupplier extends AbstractAuthSupplier implements
HttpAuth
         this.accessTokenServiceUri = uri;
     }
 
-    public void setConsumer(OAuthClientUtils.Consumer consumer) {
-        this.consumer = consumer;
+    public void setConsumer(OAuthClientUtils.Consumer c) {
+        this.consumer = c;
+    }
+    public OAuthClientUtils.Consumer getConsumer() {
+        return consumer;
     }
-
     public void setRefreshEarly(boolean refreshEarly) {
         this.refreshEarly = refreshEarly;
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/51bc2f2e/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/CodeAuthSupplier.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/CodeAuthSupplier.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/CodeAuthSupplier.java
index c85a8de..f286b07 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/CodeAuthSupplier.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/CodeAuthSupplier.java
@@ -66,7 +66,7 @@ public class CodeAuthSupplier implements HttpAuthSupplier {
     public void setAccessTokenServiceUri(String uri) {
         tokenSupplier.setAccessTokenServiceUri(uri);
     }
-    public void setConsumer(Consumer consumer) {
+    public void setConsumer(OAuthClientUtils.Consumer consumer) {
         tokenSupplier.setConsumer(consumer);
     }
 }


Mime
View raw message