agilicus 1.269.0__py3-none-any.whl → 1.269.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agilicus/agilicus_api/api_client.py +1 -1
- agilicus/agilicus_api/configuration.py +1 -1
- agilicus/agilicus_api_README.md +1 -1
- agilicus/issuers.py +28 -11
- agilicus/main.py +20 -0
- {agilicus-1.269.0.dist-info → agilicus-1.269.2.dist-info}/METADATA +1 -1
- {agilicus-1.269.0.dist-info → agilicus-1.269.2.dist-info}/RECORD +10 -10
- {agilicus-1.269.0.dist-info → agilicus-1.269.2.dist-info}/LICENSE.txt +0 -0
- {agilicus-1.269.0.dist-info → agilicus-1.269.2.dist-info}/WHEEL +0 -0
- {agilicus-1.269.0.dist-info → agilicus-1.269.2.dist-info}/entry_points.txt +0 -0
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
77
77
|
self.default_headers[header_name] = header_value
|
78
78
|
self.cookie = cookie
|
79
79
|
# Set default User-Agent.
|
80
|
-
self.user_agent = 'OpenAPI-Generator/1.269.
|
80
|
+
self.user_agent = 'OpenAPI-Generator/1.269.2/python'
|
81
81
|
|
82
82
|
def __enter__(self):
|
83
83
|
return self
|
@@ -387,7 +387,7 @@ class Configuration(object):
|
|
387
387
|
"OS: {env}\n"\
|
388
388
|
"Python Version: {pyversion}\n"\
|
389
389
|
"Version of the API: 2024.09.24\n"\
|
390
|
-
"SDK Package Version: 1.269.
|
390
|
+
"SDK Package Version: 1.269.2".\
|
391
391
|
format(env=sys.platform, pyversion=sys.version)
|
392
392
|
|
393
393
|
def get_host_settings(self):
|
agilicus/agilicus_api_README.md
CHANGED
@@ -4,7 +4,7 @@ Agilicus is API-first. Modern software is controlled by other software, is open,
|
|
4
4
|
The `agilicus_api` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
5
5
|
|
6
6
|
- API version: 2024.09.24
|
7
|
-
- Package version: 1.269.
|
7
|
+
- Package version: 1.269.2
|
8
8
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
9
9
|
For more information, please visit [https://www.agilicus.com/api](https://www.agilicus.com/api)
|
10
10
|
|
agilicus/issuers.py
CHANGED
@@ -33,6 +33,15 @@ def _get_issuer(ctx, id, client, **kwargs):
|
|
33
33
|
return issuer
|
34
34
|
|
35
35
|
|
36
|
+
def list_issuer_roots(ctx, **kwargs):
|
37
|
+
token = context.get_token(ctx)
|
38
|
+
apiclient = context.get_apiclient(ctx, token)
|
39
|
+
pop_item_if_none(kwargs)
|
40
|
+
query_results = apiclient.issuers_api.list_issuer_roots(**kwargs)
|
41
|
+
if query_results:
|
42
|
+
return query_results.issuer_roots
|
43
|
+
|
44
|
+
|
36
45
|
def query(ctx, **kwargs):
|
37
46
|
token = context.get_token(ctx)
|
38
47
|
apiclient = context.get_apiclient(ctx, token)
|
@@ -89,12 +98,14 @@ def list_well_known(ctx, **kwargs):
|
|
89
98
|
return apiclient.issuers_api.list_wellknown_issuer_info(**kwargs).well_known_info
|
90
99
|
|
91
100
|
|
92
|
-
def add(ctx, issuer, org_id, parent_issuer=None, **kwargs):
|
101
|
+
def add(ctx, issuer, org_id, parent_issuer=None, upstream_redirect_uri=None, **kwargs):
|
93
102
|
token = context.get_token(ctx)
|
94
103
|
apiclient = context.get_apiclient(ctx, token)
|
95
104
|
issuer_model = agilicus.Issuer(issuer=issuer, org_id=org_id)
|
96
105
|
if parent_issuer is not None:
|
97
106
|
issuer_model.parent_issuer = parent_issuer
|
107
|
+
if upstream_redirect_uri is not None:
|
108
|
+
issuer_model.upstream_redirect_uri = upstream_redirect_uri
|
98
109
|
|
99
110
|
return apiclient.issuers_api.create_issuer(issuer_model).to_dict()
|
100
111
|
|
@@ -246,19 +257,25 @@ def add_oidc_upstreams(
|
|
246
257
|
|
247
258
|
upstream = agilicus.OIDCUpstreamIdentityProvider(
|
248
259
|
name,
|
249
|
-
icon,
|
250
260
|
issuer_uri,
|
251
261
|
client_id,
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
request_user_info,
|
258
|
-
user_id_key,
|
259
|
-
auto_create_status,
|
260
|
-
oidc_flavor,
|
262
|
+
icon=icon,
|
263
|
+
client_secret=client_secret,
|
264
|
+
email_verification_required=email_verification_required,
|
265
|
+
request_user_info=request_user_info,
|
266
|
+
oidc_flavor=oidc_flavor,
|
261
267
|
)
|
268
|
+
if issuer_external_host:
|
269
|
+
upstream.issuer_external_host = issuer_external_host
|
270
|
+
if username_key:
|
271
|
+
upstream.username_key = username_key
|
272
|
+
if email_key:
|
273
|
+
upstream.email_key = email_key
|
274
|
+
if user_id_key:
|
275
|
+
upstream.user_id_key = user_id_key
|
276
|
+
if auto_create_status:
|
277
|
+
upstream.auto_create_status = auto_create_status
|
278
|
+
|
262
279
|
issuer.oidc_upstreams.append(upstream)
|
263
280
|
kwargs.pop("org_id", None)
|
264
281
|
return apiclient.issuers_api.replace_issuer(issuer_id, issuer, **kwargs).to_dict()
|
agilicus/main.py
CHANGED
@@ -3114,6 +3114,25 @@ def _format_flat_list(items):
|
|
3114
3114
|
return [item for item in items]
|
3115
3115
|
|
3116
3116
|
|
3117
|
+
@cli.command(name="list-issuer-roots")
|
3118
|
+
@click.option("--issuer", default=None)
|
3119
|
+
@click.option("--summarize-collection", type=bool, default=True)
|
3120
|
+
@click.option("--limit", default=None, type=int)
|
3121
|
+
@click.pass_context
|
3122
|
+
def list_issuer_roots(ctx, **kwargs):
|
3123
|
+
results = issuers.list_issuer_roots(ctx, **kwargs)
|
3124
|
+
columns = make_columns(
|
3125
|
+
ctx,
|
3126
|
+
results,
|
3127
|
+
"""
|
3128
|
+
- id
|
3129
|
+
- issuer
|
3130
|
+
- org_id
|
3131
|
+
""",
|
3132
|
+
)
|
3133
|
+
print(format_table(ctx, results, columns))
|
3134
|
+
|
3135
|
+
|
3117
3136
|
@cli.command(name="list-issuers")
|
3118
3137
|
@click.option("--org-id", default=None)
|
3119
3138
|
@click.option("--summarize-collection", type=bool, default=True)
|
@@ -3282,6 +3301,7 @@ def list_well_known_issuer_info(ctx, **kwargs):
|
|
3282
3301
|
@click.argument("issuer", default=None)
|
3283
3302
|
@click.argument("org-id", default=None)
|
3284
3303
|
@click.option("--parent-issuer", default=None)
|
3304
|
+
@click.option("--upstream-redirect-uri", default=None)
|
3285
3305
|
@click.pass_context
|
3286
3306
|
def add_issuer(ctx, **kwargs):
|
3287
3307
|
output_entry(ctx, issuers.add(ctx, **kwargs))
|
@@ -71,9 +71,9 @@ agilicus/agilicus_api/api/users_api.py,sha256=sRY1Ge_aUimbaPHoulwCVT8pSB_hpjYAdw
|
|
71
71
|
agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
|
72
72
|
agilicus/agilicus_api/api/whoami_api.py,sha256=EuL_UM7R5vey36rjwOPsF8TqNyJKyIH5RN6k05E0jAQ,7941
|
73
73
|
agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
|
74
|
-
agilicus/agilicus_api/api_client.py,sha256=
|
74
|
+
agilicus/agilicus_api/api_client.py,sha256=GH1fJfHmAxHKlsB7ng492sWkIOS-sDAxU12Z7AGD7dQ,38845
|
75
75
|
agilicus/agilicus_api/apis/__init__.py,sha256=aJZD7x-umdSni6ZBr4XxzpH8pwtU9hA5LlCDxcqa1Q8,2224
|
76
|
-
agilicus/agilicus_api/configuration.py,sha256=
|
76
|
+
agilicus/agilicus_api/configuration.py,sha256=cZVRESMm-Yw2PbclI5uFKGf_Y7GvmeexrefRURdxVr4,18447
|
77
77
|
agilicus/agilicus_api/docs/APIKey.md,sha256=4cKuz4_l9HcEDnUrLwYbEnn9C2WoDayrjfrY1Ixgaf4,1747
|
78
78
|
agilicus/agilicus_api/docs/APIKeyIntrospect.md,sha256=nJ-zkuFm3JMbWFDYYN_vYyQk1snGBtBvIxtCQxamhAU,1019
|
79
79
|
agilicus/agilicus_api/docs/APIKeyIntrospectAuthorizationInfo.md,sha256=7RApOOLjvWQs5sw2jb25g7i3Kta1BiEY-s8VRXfppH8,725
|
@@ -2529,7 +2529,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=KigehF3015P8wuGb
|
|
2529
2529
|
agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=MwqrYGLWl-hTmuLtE-GZ2_LvFtoHP3Jf0Y2n8O3Q-J8,2832
|
2530
2530
|
agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=93ATew310qaTCB9f6FjFlW3tvjaH2hi98KypBYC5gP4,2846
|
2531
2531
|
agilicus/agilicus_api/test/test_xss_settings.py,sha256=F0VcWfvT8hXcMEWowolRCxnd7Q87mHvXOc-GeS-GpWk,2746
|
2532
|
-
agilicus/agilicus_api_README.md,sha256=
|
2532
|
+
agilicus/agilicus_api_README.md,sha256=e7HmLsfqz9Ex_O4OWoA-o7ZLbDEZDEReXXT7o_VSQcA,162124
|
2533
2533
|
agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
|
2534
2534
|
agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
|
2535
2535
|
agilicus/apps.py,sha256=ZRPqOq9ecFTqaBce5JQW7e1zekoJbhgYKDDsxyWo5BA,53212
|
@@ -2571,7 +2571,7 @@ agilicus/hash.py,sha256=5_ymnLNjVbXnxiPVhd8Mur5vQMrn6Zhfjhgg4nygmEA,260
|
|
2571
2571
|
agilicus/hosts/hosts.py,sha256=U9Z_9JWkW5b5wKO1kxULhFvEENh1J75xSd9F_KQxseA,7150
|
2572
2572
|
agilicus/hosts/hosts_main.py,sha256=Eb8qv9LdDlGHE3W4hfeu3v_wN6Yug8ATKnjl1o2fMVc,3785
|
2573
2573
|
agilicus/input_helpers.py,sha256=h4cRAIK11W5MnlAUjUsRIDS18jXS3UjouU8HQZtD15g,6404
|
2574
|
-
agilicus/issuers.py,sha256=
|
2574
|
+
agilicus/issuers.py,sha256=jZjbBARd906zxG0bVzFw5_DC0Y-s6qjc6UrTertWonc,45121
|
2575
2575
|
agilicus/keyring.py,sha256=G-AsU9V7J7WPK94wSCy1Bf-Zy4CcqPise_vab3220LI,1788
|
2576
2576
|
agilicus/keyring_storage.py,sha256=tQEfDPW27xEdjPIBnjAyZOAG3wHlk3KQ2DSKYr4B5fM,2996
|
2577
2577
|
agilicus/labels/labels.py,sha256=b1wVi9PEzS2SHC_LwGmFlhb2cHnhsC25dy5e_pF6BP0,8235
|
@@ -2579,7 +2579,7 @@ agilicus/labels/labels_main.py,sha256=ptJ34mf-iVaf8ezf3RWLcpeP2O0ntezS4tqJ0ks0el
|
|
2579
2579
|
agilicus/launchers.py,sha256=r4nctnVtfP-Ho_HXEfAiMaMqJI0u7pbieHSS3Vd0QBE,11361
|
2580
2580
|
agilicus/logs.py,sha256=tS8c_sdre1Dncrl59GVGQ0L3d2jtwlVjvIMl3SHJraY,766
|
2581
2581
|
agilicus/lookups.py,sha256=MNmNsKpP7Fq_poLAnL9xo_iptFilKM9ziGLyIe8VKaw,669
|
2582
|
-
agilicus/main.py,sha256=
|
2582
|
+
agilicus/main.py,sha256=yJLZO3UmuR1P9IPF0VseSXKXYEI0--_TSGZz9MVol8I,273031
|
2583
2583
|
agilicus/messages.py,sha256=Ydm-VhAsK23UnYdstv_HsOybBODfui5ubKc7F8R_dsw,5187
|
2584
2584
|
agilicus/metrics.py,sha256=v4rwpvqDzeNG5GKNoZ7t34X5qUgly5IW2s-kXlS2vQM,2315
|
2585
2585
|
agilicus/orgs.py,sha256=S9v1Hnv_qGcJ90uNC3V692srcXTPv6GIHiTF_z5YC90,15902
|
@@ -2622,8 +2622,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
|
|
2622
2622
|
agilicus/users.py,sha256=JT7TIiUOtSFXPOdxmIVFm7ygZTH1FjsIkD9j-vjLuMM,38474
|
2623
2623
|
agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
|
2624
2624
|
agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
|
2625
|
-
agilicus-1.269.
|
2626
|
-
agilicus-1.269.
|
2627
|
-
agilicus-1.269.
|
2628
|
-
agilicus-1.269.
|
2629
|
-
agilicus-1.269.
|
2625
|
+
agilicus-1.269.2.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
|
2626
|
+
agilicus-1.269.2.dist-info/METADATA,sha256=yGS2VYr97Lez3iJfkTiKyZT5U0Zlc2HoaURryW-y2Mk,3873
|
2627
|
+
agilicus-1.269.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
2628
|
+
agilicus-1.269.2.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
|
2629
|
+
agilicus-1.269.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|