Skip to content

Commit

Permalink
fix(jans-cli-tui): hide realm in idp setup
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Baser <[email protected]>
  • Loading branch information
devrimyatar committed Sep 19, 2024
1 parent 23ef80c commit 828849f
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,6 @@ def get_metadata_container(value):
widget_style=cli_style.white_bg_widget
),

common_data.app.getTitledText(
title=_("Realm"),
name='realm',
value=self.data.get('realm', 'jans'),
style=cli_style.edit_text_required,
jans_help=_("realm"),
widget_style=cli_style.white_bg_widget
),

common_data.app.getTitledWidget(
_("Metadata Source Type"),
name='idpMetaDataSourceType',
Expand Down Expand Up @@ -255,6 +246,7 @@ def save(self):

provider_data = copy.deepcopy(self.data)
provider_data.update(new_data)
provider_data['realm'] = 'jans'
import_metadata_from_file = provider_data.pop('idpMetaDataSourceType', None) == 'file'

if import_metadata_from_file and not self.metadata_file_path:
Expand Down

0 comments on commit 828849f

Please sign in to comment.