diff --git a/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/oidc/DhisOidcLogoutSuccessHandler.java b/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/oidc/DhisOidcLogoutSuccessHandler.java index 014d911fc6fc..0c5c4dedb437 100644 --- a/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/oidc/DhisOidcLogoutSuccessHandler.java +++ b/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/security/oidc/DhisOidcLogoutSuccessHandler.java @@ -30,6 +30,7 @@ package org.hisp.dhis.security.oidc; import static com.google.common.base.Strings.isNullOrEmpty; +import static org.hisp.dhis.external.conf.ConfigurationKey.HTTP_CLEAR_SITE_DATA; import static org.hisp.dhis.external.conf.ConfigurationKey.LINKED_ACCOUNTS_ENABLED; import static org.hisp.dhis.external.conf.ConfigurationKey.LINKED_ACCOUNTS_LOGOUT_URL; import static org.hisp.dhis.external.conf.ConfigurationKey.LINKED_ACCOUNTS_RELOGIN_URL; diff --git a/dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java b/dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java index ba92379269a8..dbcb9ffc01c1 100644 --- a/dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java +++ b/dhis-2/dhis-support/dhis-support-external/src/main/java/org/hisp/dhis/external/conf/ConfigurationKey.java @@ -810,6 +810,8 @@ public enum ConfigurationKey { // Enable saved requests, this will save the URL the user tries to access before they are logged // in, and redirect to that URL after they are logged in. LOGIN_SAVED_REQUESTS_ENABLE("login.saved.requests.enable", Constants.ON, false), + /** Clear-Site-Data response header value set on logout. */ + HTTP_CLEAR_SITE_DATA("http.clear_site_data", "", false), // OIDC internal provider configuration for DHIS2 when Authorization Server is enabled, with // property: (OAUTH2_SERVER_ENABLED)