You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2017/04/24 12:37:22 UTC
cxf git commit: Removing a duplicate and wrong grant type auth code
update as noticed by Adrian Gonzalez
Repository: cxf
Updated Branches:
refs/heads/master 02e822fa5 -> e647cb1f8
Removing a duplicate and wrong grant type auth code update as noticed by Adrian Gonzalez
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e647cb1f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e647cb1f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e647cb1f
Branch: refs/heads/master
Commit: e647cb1f8e4046139fe808458e92ce2c9a69ed31
Parents: 02e822f
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Mon Apr 24 13:37:07 2017 +0100
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Mon Apr 24 13:37:07 2017 +0100
----------------------------------------------------------------------
.../security/oauth2/grants/code/AuthorizationCodeGrantHandler.java | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/e647cb1f/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/AuthorizationCodeGrantHandler.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/AuthorizationCodeGrantHandler.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/AuthorizationCodeGrantHandler.java
index 1fe42d1..a5f0e2a 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/AuthorizationCodeGrantHandler.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/AuthorizationCodeGrantHandler.java
@@ -145,7 +145,6 @@ public class AuthorizationCodeGrantHandler extends AbstractGrantHandler {
reg.setAudiences(audiences);
reg.setResponseType(grant.getResponseType());
reg.setClientCodeVerifier(codeVerifier);
- reg.setGrantType(OAuthConstants.CODE_RESPONSE_TYPE);
reg.getExtraProperties().putAll(grant.getExtraProperties());
return getDataProvider().createAccessToken(reg);
}