cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Reporting a back channel logout support if needed
Date Fri, 02 Jun 2017 15:37:25 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 52bbb4bfd -> 9f7ef87d9


Reporting a back channel logout support if needed


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

Branch: refs/heads/master
Commit: 9f7ef87d95b04987b422d09d2e6df9550e391245
Parents: 52bbb4b
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Jun 2 16:26:19 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Jun 2 16:26:19 2017 +0100

----------------------------------------------------------------------
 .../rs/security/oidc/idp/OidcConfigurationService.java | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/9f7ef87d/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcConfigurationService.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcConfigurationService.java
b/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcConfigurationService.java
index bdc53d6..1fb75ad 100644
--- a/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcConfigurationService.java
+++ b/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcConfigurationService.java
@@ -37,6 +37,7 @@ public class OidcConfigurationService extends AuthorizationMetadataService
{
     // Optional RP initiated logout
     private boolean endSessionEndpointNotAvailable;
     private String endSessionEndpointAddress;
+    private boolean backchannelLogoutSupported;
 
     @Override
     protected void prepareConfigurationData(Map<String, Object> cfg, String baseUri)
{
@@ -60,6 +61,10 @@ public class OidcConfigurationService extends AuthorizationMetadataService
{
                 calculateEndpointAddress(endSessionEndpointAddress, baseUri, "/idp/logout");
             cfg.put("end_session_endpoint", theEndSessionEndpointAddress);
         }
+        
+        if (isBackchannelLogoutSupported()) {
+            cfg.put("backchannel_logout_supported", Boolean.TRUE);
+        }
     }
 
     public boolean isUserInfoEndpointNotAvailable() {
@@ -86,4 +91,12 @@ public class OidcConfigurationService extends AuthorizationMetadataService
{
         this.endSessionEndpointAddress = endSessionEndpointAddress;
     }
 
+    public boolean isBackchannelLogoutSupported() {
+        return backchannelLogoutSupported;
+    }
+
+    public void setBackchannelLogoutSupported(boolean backchannelLogoutSupported) {
+        this.backchannelLogoutSupported = backchannelLogoutSupported;
+    }
+
 }


Mime
View raw message