cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf-fediz git commit: Fixing a copy and paste issue
Date Fri, 22 Jan 2016 17:16:31 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 6fd6e6145 -> 45fb82d76


Fixing a copy and paste issue


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

Branch: refs/heads/master
Commit: 45fb82d764830bdad290ebbd4f389d95d21835ea
Parents: 6fd6e61
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Jan 22 17:16:17 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Jan 22 17:16:17 2016 +0000

----------------------------------------------------------------------
 .../cxf/fediz/service/oidc/ClientRegistrationService.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/45fb82d7/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
index 026d9ed..cee659a 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
@@ -207,6 +207,7 @@ public class ClientRegistrationService {
         if (!("confidential".equals(appType) || "public".equals(appType))) {
             throw new InvalidRegistrationException("An invalid client type was specified:
" + appType);
         }
+        
         if (redirectURI != null && !"".equals(redirectURI) && !isValidURI(redirectURI,
false)) {
             throw new InvalidRegistrationException("An invalid redirect URI was specified:
" + redirectURI);
         }
@@ -237,8 +238,8 @@ public class ClientRegistrationService {
             List<String> registeredAuds = new LinkedList<String>();
             for (String aud : auds) {
                 // make sure it is a proper URI
-                if (audience != null && !"".equals(audience) && !isValidURI(audience,
true)) {
-                    throw new InvalidRegistrationException("An invalid audience URI was specified:
" + audience);
+                if (!"".equals(aud) && !isValidURI(aud, true)) {
+                    throw new InvalidRegistrationException("An invalid audience URI was specified:
" + aud);
                 }
                 registeredAuds.add(aud);
             }


Mime
View raw message