From 450c78cc2097a08ea485c26e8df6eb36146ca3be Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Tue, 19 Apr 2022 16:16:59 +0300 Subject: [PATCH] feat(jans-linux-setup): config-api user management plugin (ref: ##1213) (#1223) --- jans-linux-setup/jans_setup/install.py | 1 + jans-linux-setup/jans_setup/setup_app/installers/config_api.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/jans-linux-setup/jans_setup/install.py b/jans-linux-setup/jans_setup/install.py index 06b7e205ba5..125ce14761f 100755 --- a/jans-linux-setup/jans_setup/install.py +++ b/jans-linux-setup/jans_setup/install.py @@ -235,6 +235,7 @@ def download_files(): download(urljoin(maven_base_url, 'jans-config-api-server/{0}{1}/jans-config-api-server-{0}{1}.war'.format(app_versions['JANS_APP_VERSION'], app_versions['JANS_BUILD'])), os.path.join(jans_app_dir, 'jans-config-api.war')) download('https://github.com/sqlalchemy/sqlalchemy/archive/rel_1_3_23.zip', sqlalchemy_zip_file) download(urljoin(maven_base_url, 'jans-config-api/plugins/scim-plugin/{0}{1}/scim-plugin-{0}{1}-distribution.jar'.format(app_versions['JANS_APP_VERSION'], app_versions['JANS_BUILD'])), os.path.join(jans_app_dir, 'scim-plugin.jar')) + download(urljoin(maven_base_url, 'jans-config-api/plugins/user-mgt-plugin/{0}{1}/user-mgt-plugin-{0}{1}-distribution.jar'.format(app_versions['JANS_APP_VERSION'], app_versions['JANS_BUILD'])), os.path.join(jans_app_dir, 'user-mgt-plugin.jar')) download('https://ox.gluu.org/icrby8xcvbcv/cli-swagger/jca_swagger_client.zip', os.path.join(jans_app_dir, 'jca-swagger-client.zip')) download('https://ox.gluu.org/icrby8xcvbcv/cli-swagger/scim_swagger_client.zip', os.path.join(jans_app_dir, 'scim-swagger-client.zip')) download('https://raw.githubusercontent.com/GluuFederation/gluu-snap/master/facter/facter', os.path.join(jans_app_dir, 'facter')) diff --git a/jans-linux-setup/jans_setup/setup_app/installers/config_api.py b/jans-linux-setup/jans_setup/setup_app/installers/config_api.py index ee784adf7c3..16b9987d2d0 100644 --- a/jans-linux-setup/jans_setup/setup_app/installers/config_api.py +++ b/jans-linux-setup/jans_setup/setup_app/installers/config_api.py @@ -44,6 +44,7 @@ def __init__(self): (os.path.join(Config.distJansFolder, 'scim-plugin.jar'), 'https://maven.jans.io/maven/io/jans/scim-plugin/{0}/scim-plugin-{0}-distribution.jar'.format(Config.oxVersion)), (os.path.join(Config.distJansFolder, 'facter'), 'https://raw.githubusercontent.com/GluuFederation/gluu-snap/master/facter/facter'), (os.path.join(Config.install_dir, 'jans_setup/data/jans-config-api-swagger.yaml'), 'https://raw.githubusercontent.com/JanssenProject/jans/main/jans-config-api/docs/jans-config-api-swagger.yaml'), + (os.path.join(Config.distJansFolder, 'user-mgt-plugin.jar'), 'https://maven.jans.io/maven/io/jans/jans-config-api/plugins/user-mgt-plugin/{0}/user-mgt-plugin-{0}-distribution.jar'.format(Config.oxVersion)), ] def install(self): @@ -60,6 +61,8 @@ def install(self): self.copyFile(self.source_files[1][0], self.libDir) scim_plugin_path = os.path.join(self.libDir, os.path.basename(self.source_files[1][0])) self.add_extra_class(scim_plugin_path) + user_mgt_plugin_path = os.path.join(self.libDir, os.path.basename(self.source_files[4][0])) + self.add_extra_class(user_mgt_plugin_path) base.extract_file( os.path.join(Config.distJansFolder, 'jans.zip'), 'jans-config-api/server/src/main/resources/log4j2.xml',