Skip to content

Commit

Permalink
fix: jans-cli hide user operations for openbanking (ref: #1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Sep 24, 2022
1 parent 0dcc3df commit d325406
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
tabular_dataset = {'scim.get-users': 'Resources'}
excluded_operations = {'scim': ['search-user'], 'jca':[]}


my_op_mode = 'scim' if 'scim' in os.path.basename(sys.argv[0]) else 'jca'
sys.path.append(os.path.join(cur_dir, my_op_mode))
swagger_client = importlib.import_module(my_op_mode + '.swagger_client')
Expand Down Expand Up @@ -142,6 +143,9 @@ def join(self):
args = parser.parse_args()


if args.config_api_mtls_client_cert and args.config_api_mtls_client_key:
excluded_operations['jca'] += ['get-user', 'post-user', 'put-user', 'get-user-by-inum', 'delete-user', 'patch-user-by-inum']

if not args.no_suggestion:
from prompt_toolkit import prompt, HTML
from prompt_toolkit.completion import WordCompleter
Expand Down

0 comments on commit d325406

Please sign in to comment.