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 2015/11/24 16:44:36 UTC
cxf git commit: Getting invalid_client reported
Repository: cxf
Updated Branches:
refs/heads/master 3d96a928c -> b4640accd
Getting invalid_client reported
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b4640acc
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b4640acc
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b4640acc
Branch: refs/heads/master
Commit: b4640accdcd2205feae595da6256a8ecd9096af5
Parents: 3d96a92
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Nov 24 15:44:17 2015 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Nov 24 15:44:17 2015 +0000
----------------------------------------------------------------------
.../cxf/rs/security/oauth2/services/AbstractTokenService.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/b4640acc/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.java
index 61e3165..a31fb5d 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractTokenService.java
@@ -110,14 +110,14 @@ public class AbstractTokenService extends AbstractOAuthService {
protected Client getAndValidateClientFromIdAndSecret(String clientId, String providedClientSecret) {
Client client = getClient(clientId);
if (!client.getClientId().equals(clientId)) {
- throw ExceptionUtils.toNotAuthorizedException(null, null);
+ reportInvalidClient();
}
if (isValidPublicClient(client, clientId, providedClientSecret)) {
return client;
}
if (!client.isConfidential()
|| !isConfidenatialClientSecretValid(client, providedClientSecret)) {
- throw ExceptionUtils.toNotAuthorizedException(null, null);
+ reportInvalidClient();
}
return client;
}