cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6280] Quick prototype pf DirectAuthorizationService
Date Thu, 23 Apr 2015 21:06:34 GMT
Repository: cxf
Updated Branches:
  refs/heads/master ae4781bbc -> 3656b40f2


[CXF-6280] Quick prototype pf DirectAuthorizationService


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

Branch: refs/heads/master
Commit: 3656b40f215f9904ea3649163bf2444eeab0c9cc
Parents: ae4781b
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Apr 23 22:06:16 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Apr 23 22:06:16 2015 +0100

----------------------------------------------------------------------
 .../rs/security/oauth2/services/RedirectionBasedGrantService.java  | 2 +-
 .../org/apache/cxf/rs/security/oauth2/utils/OAuthConstants.java    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/3656b40f/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
index be09cc0..05ac679 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
@@ -429,7 +429,7 @@ public abstract class RedirectionBasedGrantService extends AbstractOAuthService
         
     }
     protected Client getClient(MultivaluedMap<String, String> params) {
-        return this.getClient(params.getFirst(OAuthConstants.CLIENT_ID));
+        return getClient(params.getFirst(OAuthConstants.CLIENT_ID));
     }
     protected String getSupportedGrantType() {
         return this.supportedGrantType;

http://git-wip-us.apache.org/repos/asf/cxf/blob/3656b40f/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthConstants.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthConstants.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthConstants.java
index 9f4a801..a25a579 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthConstants.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthConstants.java
@@ -51,6 +51,7 @@ public final class OAuthConstants {
     // CXF-specific grant
     // The token is returned directly to a human user who copies it into a confidential client
     public static final String IMPLICIT_CONFIDENTIAL_GRANT = "urn:ietf:params:oauth:grant-type:implicit-confidential";
+    public static final String DIRECT_TOKEN_GRANT = "urn:ietf:params:oauth:grant-type:direct-token-grant";
     
     // Well-known token types
     public static final String BEARER_TOKEN_TYPE = "bearer";


Mime
View raw message