From 6210ef9df0db694ff31aaa9d7dbcbdb9a59c4781 Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Wed, 1 Feb 2023 14:38:07 +0300 Subject: [PATCH 1/2] feat: jans-linux-setup add ssa admin scope --- .../jans_setup/templates/jans-cli/client.ldif | 1 + jans-linux-setup/jans_setup/templates/scopes.ldif | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/jans-linux-setup/jans_setup/templates/jans-cli/client.ldif b/jans-linux-setup/jans_setup/templates/jans-cli/client.ldif index 68509101d00..6bcf5b053be 100644 --- a/jans-linux-setup/jans_setup/templates/jans-cli/client.ldif +++ b/jans-linux-setup/jans_setup/templates/jans-cli/client.ldif @@ -32,6 +32,7 @@ jansScope: inum=C4F6,ou=scopes,o=jans jansScope: inum=43F1,ou=scopes,o=jans jansScope: inum=764C,ou=scopes,o=jans jansScope: inum=F0C4,ou=scopes,o=jans +jansScope: inum=B9D2-D6E5,ou=scopes,o=jans jansSignedRespAlg: RS256 jansSubjectTyp: pairwise jansTknEndpointAuthMethod: client_secret_basic diff --git a/jans-linux-setup/jans_setup/templates/scopes.ldif b/jans-linux-setup/jans_setup/templates/scopes.ldif index 047693d91ab..99d68a948f1 100644 --- a/jans-linux-setup/jans_setup/templates/scopes.ldif +++ b/jans-linux-setup/jans_setup/templates/scopes.ldif @@ -185,3 +185,13 @@ jansId: device_sso jansScopeTyp: openid objectClass: top objectClass: jansScope + +dn: inum=B9D2-D6E5,ou=scopes,o=jans +displayName: SSA Admin +inum: B9D2-D6E5 +jansAttrs: {"spontaneousClientId":"","spontaneousClientScopes":[],"showInConfigurationEndpoint":true} +jansId: https://jans.io/auth/ssa.admin +jansScopeTyp: openid +jansDefScope: false +objectClass: top +objectClass: jansScope From 5a1805587bec3b730f60ecb593e716d53190a4a7 Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Wed, 1 Feb 2023 15:11:37 +0300 Subject: [PATCH 2/2] fix: jans-linux-setup copy auth swagger to cli dir --- .../jans_setup/setup_app/installers/jans_cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jans-linux-setup/jans_setup/setup_app/installers/jans_cli.py b/jans-linux-setup/jans_setup/setup_app/installers/jans_cli.py index 1285c43cf3a..91699c674ae 100644 --- a/jans-linux-setup/jans_setup/setup_app/installers/jans_cli.py +++ b/jans-linux-setup/jans_setup/setup_app/installers/jans_cli.py @@ -57,9 +57,8 @@ def install(self): self.createDirs(self.pylib_dir) ops_dir = os.path.join(self.jans_cli_install_dir, 'cli', 'ops') self.createDirs(ops_dir) - self.createDirs(os.path.join(ops_dir, 'jca')) - self.createDirs(os.path.join(ops_dir, 'scim')) - + for opsd in ('jca', 'scim', 'auth'): + self.createDirs(os.path.join(ops_dir, opsd)) #extract jans-cli tgz archieve base.extract_from_zip(base.current_app.jans_zip, 'jans-cli-tui/cli_tui', self.jans_cli_install_dir) @@ -80,10 +79,11 @@ def install(self): base.extract_from_zip(self.source_files[3][0], 'pygments', os.path.join(self.pylib_dir, 'pygments')) # extract yaml files - base.extract_file(base.current_app.jans_zip, 'jans-config-api/docs/jans-config-api-swagger.yaml', os.path.join(ops_dir, 'jca', 'jans-config-api-swagger-auto.yaml'), ren=True) + base.extract_file(base.current_app.jans_zip, 'jans-config-api/docs/jans-config-api-swagger.yaml', os.path.join(ops_dir, 'jca', 'jans-config-api-swagger.yaml'), ren=True) for plugin_yaml_file in ('fido2-plugin-swagger.yaml', 'jans-admin-ui-plugin-swagger.yaml', 'scim-plugin-swagger.yaml', 'user-mgt-plugin-swagger.yaml'): base.extract_file(base.current_app.jans_zip, 'jans-config-api/plugins/docs/'+plugin_yaml_file, os.path.join(ops_dir, 'jca', plugin_yaml_file), ren=True) base.extract_file(base.current_app.jans_zip, 'jans-scim/server/src/main/resources/jans-scim-openapi.yaml', os.path.join(ops_dir, 'scim', 'scim.yaml'), ren=True) + base.extract_file(base.current_app.jans_zip, 'jans-auth-server/docs/swagger.yaml', os.path.join(ops_dir, 'auth', 'swagger.yaml'), ren=True) def generate_configuration(self):