Skip to content
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
7 changes: 7 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

[0.2.3] - Unreleased
--------------------

Added
^^^^^
- Add the ``--no-verify`` parameter to skip certificate verifications. :issue:`20`

[0.2.2] - 2024-12-06
--------------------

Expand Down
16 changes: 14 additions & 2 deletions scim2_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ def load_config_files(
help="Headers to pass in the HTTP requests. Can be passed multiple times.",
envvar="SCIM_CLI_HEADERS",
)
@click.option(
"--no-verify",
is_flag=True,
default=False,
help="Don't perform https certificate verifications.",
)
@click.option(
"-s",
"--schemas",
Expand All @@ -99,7 +105,13 @@ def load_config_files(
)
@click.pass_context
def cli(
ctx, url: str, header: list[str], schemas, resource_types, service_provider_config
ctx,
url: str,
header: list[str],
no_verify,
schemas,
resource_types,
service_provider_config,
):
"""SCIM application development CLI."""
ctx.ensure_object(dict)
Expand All @@ -108,7 +120,7 @@ def cli(
raise click.ClickException("No SCIM server URL defined.")

headers_dict = split_headers(header)
client = Client(base_url=url, headers=headers_dict)
client = Client(base_url=url, headers=headers_dict, verify=not no_verify)

resource_models, resource_types_obj, spc_obj = load_config_files(
schemas, resource_types, service_provider_config
Expand Down
Loading