diff --git a/client/python/cli/polaris_cli.py b/client/python/cli/polaris_cli.py index a19daed81d..b4d1fd8e41 100644 --- a/client/python/cli/polaris_cli.py +++ b/client/python/cli/polaris_cli.py @@ -118,7 +118,7 @@ def _get_client_builder(options): # Validates has_access_token = options.access_token is not None has_client_secret = client_id is not None and client_secret is not None - if has_access_token and has_client_secret: + if has_access_token and (options.client_id or options.client_secret): raise Exception(f'Please provide credentials via either {Argument.to_flag_name(Arguments.CLIENT_ID)} &' f' {Argument.to_flag_name(Arguments.CLIENT_SECRET)} or' f' {Argument.to_flag_name(Arguments.ACCESS_TOKEN)}, but not both')