Skip to content

Commit

Permalink
fix: linux-setup don't use personCustomObjectClassList for RDBMS (ref:
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Apr 18, 2022
1 parent 54847bc commit 0df93be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions jans-linux-setup/jans_setup/setup_app/installers/jans_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0df93be

Please sign in to comment.