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: Using the right Client instance for handling back channel requests
Date Fri, 02 Jun 2017 16:02:17 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master c3723ed59 -> 84e7f6edc


Using the right Client instance for handling back channel requests


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

Branch: refs/heads/master
Commit: 84e7f6edc07cbe344c82f2a375b44e1581f8af81
Parents: c3723ed
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Jun 2 17:02:00 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Jun 2 17:02:00 2017 +0100

----------------------------------------------------------------------
 .../service/oidc/logout/BackChannelLogoutHandler.java    | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/84e7f6ed/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/BackChannelLogoutHandler.java
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/BackChannelLogoutHandler.java
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/BackChannelLogoutHandler.java
index b3e9904..0c417b6 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/BackChannelLogoutHandler.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/logout/BackChannelLogoutHandler.java
@@ -56,14 +56,15 @@ public class BackChannelLogoutHandler extends JoseJwtProducer {
         List<ServerAccessToken> accessTokens = dataProvider.getAccessTokens(client,
 subject);
         Set<String> processedClients = new HashSet<String>();
         for (ServerAccessToken at : accessTokens) {
-            if (client.getClientId().equals(at.getClient().getClientId())
-                || processedClients.contains(client.getClientId())) {
+            Client atClient = at.getClient();
+            if (client.getClientId().equals(atClient.getClientId())
+                || processedClients.contains(atClient.getClientId())) {
                 continue;
             }
-            String uri = client.getProperties().get(BACK_CHANNEL_LOGOUT_URI);
+            String uri = atClient.getProperties().get(BACK_CHANNEL_LOGOUT_URI);
             if (uri != null) {
-                processedClients.add(client.getClientId());
-                submitBackChannelLogoutRequest(client, subject, idTokenHint, uri);
+                processedClients.add(atClient.getClientId());
+                submitBackChannelLogoutRequest(atClient, subject, idTokenHint, uri);
             }
         }
         


Mime
View raw message