Skip to content

Commit

Permalink
feat: jans-linux-setup ssa admin scope (#3759)
Browse files Browse the repository at this point in the history
* feat: jans-linux-setup add ssa admin scope

* fix: jans-linux-setup copy auth swagger to cli dir
  • Loading branch information
devrimyatar authored Feb 1, 2023
1 parent a7e14a0 commit 485f7b4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jans-linux-setup/jans_setup/setup_app/installers/jans_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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):
Expand Down
1 change: 1 addition & 0 deletions jans-linux-setup/jans_setup/templates/jans-cli/client.ldif
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions jans-linux-setup/jans_setup/templates/scopes.ldif
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 485f7b4

Please sign in to comment.