Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: jans-linux-setup ssa admin scope #3759

Merged
merged 2 commits into from
Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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