Skip to content

Commit

Permalink
fix: jans-cli-tui SSA org_id, status and software_roles (#3765)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Feb 2, 2023
1 parent d01269a commit 4bd3e9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jans-cli-tui/cli_tui/plugins/010_auth_server/ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def update_ssa_container(self, start_index=0, search_str=''):
str(ssa['ssa']['software_id']),
str(ssa['ssa']['org_id']),
','.join(ssa['ssa']['software_roles']),
'??',
ssa['status'],
'{:02d}/{:02d}/{}'.format(dt_object.day, dt_object.month, str(dt_object.year)[2:])
))

Expand Down Expand Up @@ -124,6 +124,8 @@ def save_ssa(self, dialog):
else:
new_data['expiration'] = int(datetime.fromisoformat(self.expire_widget.value).timestamp())

new_data['software_roles'] = new_data['software_roles'].splitlines()

if self.check_required_fields(dialog.body, data=new_data):

async def coroutine():
Expand Down Expand Up @@ -162,8 +164,7 @@ def edit_ssa_dialog(self, data=None):
self.app.getTitledText(
title=_("Organisation"),
name='org_id',
value=str(data.get('org_id','')),
text_type='integer',
value=data.get('org_id',''),
style=cli_style.edit_text_required
),

Expand Down

0 comments on commit 4bd3e9a

Please sign in to comment.