From 4d8dff7dc3957f5aa57dee1e2a3060612196c8a4 Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Tue, 19 Apr 2022 11:33:45 +0300 Subject: [PATCH] fix: linux-setup don't use personCustomObjectClassList for RDBMS (ref: #1214) (#1216) --- .../jans_setup/setup_app/installers/jans_auth.py | 2 ++ .../jans_setup/templates/jans-auth/jans-auth-config.json | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/jans-linux-setup/jans_setup/setup_app/installers/jans_auth.py b/jans-linux-setup/jans_setup/setup_app/installers/jans_auth.py index c05b4b21a2b..81cd0536360 100644 --- a/jans-linux-setup/jans_setup/setup_app/installers/jans_auth.py +++ b/jans-linux-setup/jans_setup/setup_app/installers/jans_auth.py @@ -112,6 +112,8 @@ def render_import_templates(self): self.role_scope_mappings() + Config.templateRenderingDict['person_custom_object_class_list'] = '[]' if Config.mappingLocations['default'] == 'rdbm' else '["jansCustomPerson", "jansPerson"]' + templates = [self.oxauth_config_json] if Config.profile == 'jans': templates += [self.ldif_people, self.ldif_groups] diff --git a/jans-linux-setup/jans_setup/templates/jans-auth/jans-auth-config.json b/jans-linux-setup/jans_setup/templates/jans-auth/jans-auth-config.json index 61e24a8644f..2f6f3429055 100644 --- a/jans-linux-setup/jans_setup/templates/jans-auth/jans-auth-config.json +++ b/jans-linux-setup/jans_setup/templates/jans-auth/jans-auth-config.json @@ -297,10 +297,7 @@ "skipAuthorizationForOpenIdScopeAndPairwiseId": false, "dynamicRegistrationScopesParamEnabled":true, "dynamicRegistrationCustomObjectClass":"", - "personCustomObjectClassList":[ - "jansCustomPerson", - "jansPerson" - ], + "personCustomObjectClassList": %(person_custom_object_class_list)s, "persistIdTokenInLdap":false, "persistRefreshTokenInLdap":true, "authenticationFiltersEnabled":false,