fusionauth_client 1.68.0 → 1.69.0
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.
- checksums.yaml +4 -4
- data/.github/fusionauth/docker-compose.yml +1 -1
- data/.github/fusionauth/kickstart.json +1 -2
- data/.github/fusionauth/poll-for-kickstart-finish.sh +38 -0
- data/Gemfile.lock +1 -1
- data/build.savant +1 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +144 -40
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4090d20e45451e449c9f7c5033f3af3f57e82a0ac275deb55d6bcd1c753a6f5
|
|
4
|
+
data.tar.gz: c01d279fd9061308c3faf6872c1e28a86d1023479b04dbcc1786288efb198ccb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2ca819f73e0b1435cc95ba4ea9d3b58d3e6ed98c9843525638b8adc4b23474df832a285d604d3f9a181a38cdd23043a55fe826cd73a395e64a7a270bd5eea54
|
|
7
|
+
data.tar.gz: c81ec5c46ffcb584987a6d6190db3571ff28db5bb51e70f8cab4f42adf693feade997887096c6b26afa2e1bc75dba51204d16de25baeabc025f174ca08d3eb3b
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"variables": {
|
|
3
3
|
"applicationId": "3c219e58-ed0e-4b18-ad48-f4f92793ae32",
|
|
4
|
-
"apiKey": "72a8c464b86c3c9098c33da73f471b8a0352f6e14087ddc3",
|
|
5
4
|
"asymmetricKeyId": "#{UUID()}",
|
|
6
5
|
"defaultTenantId": "d7d09513-a3f5-401c-9685-34ab6c552453",
|
|
7
6
|
"adminEmail": "admin@example.com",
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
},
|
|
10
9
|
"apiKeys": [
|
|
11
10
|
{
|
|
12
|
-
"key": "
|
|
11
|
+
"key": "bf69486b-4733-4470-a592-f1bfce7af580",
|
|
13
12
|
"description": "Unrestricted API key"
|
|
14
13
|
}
|
|
15
14
|
],
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright (c) 2026, FusionAuth, All Rights Reserved
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing,
|
|
11
|
+
# software distributed under the License is distributed on an
|
|
12
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
13
|
+
# either express or implied. See the License for the specific
|
|
14
|
+
# language governing permissions and limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
|
|
17
|
+
cd $(dirname "$0")
|
|
18
|
+
|
|
19
|
+
isFusionAuthReady () {
|
|
20
|
+
docker compose logs fusionauth 2>&1 | grep -Fq 'Completed [POST] request to [/api/user/registration]'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
max_retries=20
|
|
24
|
+
i=1
|
|
25
|
+
while [ "$i" -le "$max_retries" ]; do
|
|
26
|
+
echo -n "[$i/$max_retries] Waiting for FusionAuth server to start... "
|
|
27
|
+
|
|
28
|
+
if isFusionAuthReady; then
|
|
29
|
+
echo "READY"
|
|
30
|
+
exit 0
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
echo "NOT READY"
|
|
34
|
+
sleep 5
|
|
35
|
+
i=$((i + 1))
|
|
36
|
+
done
|
|
37
|
+
|
|
38
|
+
exit 1
|
data/Gemfile.lock
CHANGED
data/build.savant
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
pubVersion = ""
|
|
18
|
-
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.
|
|
18
|
+
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.69.0", licenses: ["ApacheV2_0"]) {
|
|
19
19
|
workflow {
|
|
20
20
|
fetch {
|
|
21
21
|
cache()
|
data/fusionauth_client.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
19
19
|
|
|
20
20
|
Gem::Specification.new do |spec|
|
|
21
21
|
spec.name = 'fusionauth_client'
|
|
22
|
-
spec.version = '1.
|
|
22
|
+
spec.version = '1.69.0'
|
|
23
23
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
|
24
24
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
|
25
25
|
|
|
@@ -3875,46 +3875,6 @@ module FusionAuth
|
|
|
3875
3875
|
.go
|
|
3876
3876
|
end
|
|
3877
3877
|
|
|
3878
|
-
#
|
|
3879
|
-
# Retrieve a user_code that is part of an in-progress Device Authorization Grant.
|
|
3880
|
-
#
|
|
3881
|
-
# This API is useful if you want to build your own login workflow to complete a device grant.
|
|
3882
|
-
#
|
|
3883
|
-
# @param client_id [string] The client Id.
|
|
3884
|
-
# @param client_secret [string] The client Id.
|
|
3885
|
-
# @param user_code [string] The end-user verification code.
|
|
3886
|
-
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
3887
|
-
def retrieve_user_code(client_id, client_secret, user_code)
|
|
3888
|
-
form_parameters = {
|
|
3889
|
-
"client_id" => client_id,
|
|
3890
|
-
"client_secret" => client_secret,
|
|
3891
|
-
"user_code" => user_code,
|
|
3892
|
-
}
|
|
3893
|
-
startAnonymous.uri('/oauth2/device/user-code')
|
|
3894
|
-
.body_handler(FusionAuth::FormDataBodyHandler.new(form_parameters))
|
|
3895
|
-
.get
|
|
3896
|
-
.go
|
|
3897
|
-
end
|
|
3898
|
-
|
|
3899
|
-
#
|
|
3900
|
-
# Retrieve a user_code that is part of an in-progress Device Authorization Grant.
|
|
3901
|
-
#
|
|
3902
|
-
# This API is useful if you want to build your own login workflow to complete a device grant.
|
|
3903
|
-
#
|
|
3904
|
-
# This request will require an API key.
|
|
3905
|
-
#
|
|
3906
|
-
# @param user_code [string] The end-user verification code.
|
|
3907
|
-
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
3908
|
-
def retrieve_user_code_using_api_key(user_code)
|
|
3909
|
-
form_parameters = {
|
|
3910
|
-
"user_code" => user_code,
|
|
3911
|
-
}
|
|
3912
|
-
startAnonymous.uri('/oauth2/device/user-code')
|
|
3913
|
-
.body_handler(FusionAuth::FormDataBodyHandler.new(form_parameters))
|
|
3914
|
-
.get
|
|
3915
|
-
.go
|
|
3916
|
-
end
|
|
3917
|
-
|
|
3918
3878
|
#
|
|
3919
3879
|
# Retrieve a user_code that is part of an in-progress Device Authorization Grant.
|
|
3920
3880
|
#
|
|
@@ -4350,6 +4310,24 @@ module FusionAuth
|
|
|
4350
4310
|
.go
|
|
4351
4311
|
end
|
|
4352
4312
|
|
|
4313
|
+
#
|
|
4314
|
+
# Searches consents with the specified criteria and pagination.
|
|
4315
|
+
#
|
|
4316
|
+
# @param name [string] (Optional) The name of the consent to search for. Supports wildcard search using *.
|
|
4317
|
+
# @param number_of_results [Numeric] (Optional) The number of results to return. Defaults to 25.
|
|
4318
|
+
# @param order_by [string] (Optional) The field to order the results by. Supported values: id, insertInstant, name.
|
|
4319
|
+
# @param start_row [Numeric] (Optional) The offset into the total results. Defaults to 0.
|
|
4320
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4321
|
+
def search_consents_by_parameters(name, number_of_results, order_by, start_row)
|
|
4322
|
+
start.uri('/api/consent/search')
|
|
4323
|
+
.url_parameter('name', name)
|
|
4324
|
+
.url_parameter('numberOfResults', number_of_results)
|
|
4325
|
+
.url_parameter('orderBy', order_by)
|
|
4326
|
+
.url_parameter('startRow', start_row)
|
|
4327
|
+
.get
|
|
4328
|
+
.go
|
|
4329
|
+
end
|
|
4330
|
+
|
|
4353
4331
|
#
|
|
4354
4332
|
# Searches email templates with the specified criteria and pagination.
|
|
4355
4333
|
#
|
|
@@ -4398,6 +4376,28 @@ module FusionAuth
|
|
|
4398
4376
|
.go
|
|
4399
4377
|
end
|
|
4400
4378
|
|
|
4379
|
+
#
|
|
4380
|
+
# Searches entity grants with the specified criteria and pagination.
|
|
4381
|
+
#
|
|
4382
|
+
# @param entity_id [string] (Optional) The entity Id to search for grants on.
|
|
4383
|
+
# @param name [string] (Optional) The name of the entity grant to search for. Supports wildcard search using *.
|
|
4384
|
+
# @param user_id [string] (Optional) The user Id to search for grants on.
|
|
4385
|
+
# @param number_of_results [Numeric] (Optional) The number of results to return. Defaults to 25.
|
|
4386
|
+
# @param order_by [string] (Optional) The field to order the results by.
|
|
4387
|
+
# @param start_row [Numeric] (Optional) The offset into the total results. Defaults to 0.
|
|
4388
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4389
|
+
def search_entity_grants_by_parameters(entity_id, name, user_id, number_of_results, order_by, start_row)
|
|
4390
|
+
start.uri('/api/entity/grant/search')
|
|
4391
|
+
.url_parameter('entityId', entity_id)
|
|
4392
|
+
.url_parameter('name', name)
|
|
4393
|
+
.url_parameter('userId', user_id)
|
|
4394
|
+
.url_parameter('numberOfResults', number_of_results)
|
|
4395
|
+
.url_parameter('orderBy', order_by)
|
|
4396
|
+
.url_parameter('startRow', start_row)
|
|
4397
|
+
.get
|
|
4398
|
+
.go
|
|
4399
|
+
end
|
|
4400
|
+
|
|
4401
4401
|
#
|
|
4402
4402
|
# Searches the entity types with the specified criteria and pagination.
|
|
4403
4403
|
#
|
|
@@ -4410,6 +4410,24 @@ module FusionAuth
|
|
|
4410
4410
|
.go
|
|
4411
4411
|
end
|
|
4412
4412
|
|
|
4413
|
+
#
|
|
4414
|
+
# Searches entity types with the specified criteria and pagination.
|
|
4415
|
+
#
|
|
4416
|
+
# @param name [string] The name of the entity type to search for. Use * to return all entity types.
|
|
4417
|
+
# @param number_of_results [Numeric] (Optional) The number of results to return. Defaults to 25.
|
|
4418
|
+
# @param order_by [string] (Optional) The field to order the results by. Supported values: insertInstant, lastUpdateInstant, name.
|
|
4419
|
+
# @param start_row [Numeric] (Optional) The offset into the total results. Defaults to 0.
|
|
4420
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4421
|
+
def search_entity_types_by_parameters(name, number_of_results, order_by, start_row)
|
|
4422
|
+
start.uri('/api/entity/type/search')
|
|
4423
|
+
.url_parameter('name', name)
|
|
4424
|
+
.url_parameter('numberOfResults', number_of_results)
|
|
4425
|
+
.url_parameter('orderBy', order_by)
|
|
4426
|
+
.url_parameter('startRow', start_row)
|
|
4427
|
+
.get
|
|
4428
|
+
.go
|
|
4429
|
+
end
|
|
4430
|
+
|
|
4413
4431
|
#
|
|
4414
4432
|
# Searches the event logs with the specified criteria and pagination.
|
|
4415
4433
|
#
|
|
@@ -4458,6 +4476,24 @@ module FusionAuth
|
|
|
4458
4476
|
.go
|
|
4459
4477
|
end
|
|
4460
4478
|
|
|
4479
|
+
#
|
|
4480
|
+
# Searches IP access control lists with the specified criteria and pagination.
|
|
4481
|
+
#
|
|
4482
|
+
# @param name [string] (Optional) The name of the IP access control list to search for. Supports wildcard search using *.
|
|
4483
|
+
# @param number_of_results [Numeric] (Optional) The number of results to return. Defaults to 25.
|
|
4484
|
+
# @param order_by [string] (Optional) The field to order the results by. Supported values: id, insertInstant, lastUpdateInstant, name.
|
|
4485
|
+
# @param start_row [Numeric] (Optional) The offset into the total results. Defaults to 0.
|
|
4486
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4487
|
+
def search_ip_access_control_lists_by_parameters(name, number_of_results, order_by, start_row)
|
|
4488
|
+
start.uri('/api/ip-acl/search')
|
|
4489
|
+
.url_parameter('name', name)
|
|
4490
|
+
.url_parameter('numberOfResults', number_of_results)
|
|
4491
|
+
.url_parameter('orderBy', order_by)
|
|
4492
|
+
.url_parameter('startRow', start_row)
|
|
4493
|
+
.get
|
|
4494
|
+
.go
|
|
4495
|
+
end
|
|
4496
|
+
|
|
4461
4497
|
#
|
|
4462
4498
|
# Searches identity providers with the specified criteria and pagination.
|
|
4463
4499
|
#
|
|
@@ -4470,6 +4506,30 @@ module FusionAuth
|
|
|
4470
4506
|
.go
|
|
4471
4507
|
end
|
|
4472
4508
|
|
|
4509
|
+
#
|
|
4510
|
+
# Searches identity providers with the specified criteria and pagination.
|
|
4511
|
+
#
|
|
4512
|
+
# @param application_id [string] (Optional) The application Id to search for identity providers.
|
|
4513
|
+
# @param name [string] (Optional) The name of the identity provider to search for. Supports wildcard search using *.
|
|
4514
|
+
# @param number_of_results [Numeric] (Optional) The number of results to return. Defaults to 25.
|
|
4515
|
+
# @param order_by [string] (Optional) The field to order the results by. Supported values: enabled, id, insertInstant, name, type.
|
|
4516
|
+
# @param start_row [Numeric] (Optional) The offset into the total results. Defaults to 0.
|
|
4517
|
+
# @param tenant_id [string] (Optional) The tenant Id to restrict the results to.
|
|
4518
|
+
# @param type [string] (Optional) The type of identity provider to search for.
|
|
4519
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4520
|
+
def search_identity_providers_by_parameters(application_id, name, number_of_results, order_by, start_row, tenant_id, type)
|
|
4521
|
+
start.uri('/api/identity-provider/search')
|
|
4522
|
+
.url_parameter('applicationId', application_id)
|
|
4523
|
+
.url_parameter('name', name)
|
|
4524
|
+
.url_parameter('numberOfResults', number_of_results)
|
|
4525
|
+
.url_parameter('orderBy', order_by)
|
|
4526
|
+
.url_parameter('startRow', start_row)
|
|
4527
|
+
.url_parameter('tenantId', tenant_id)
|
|
4528
|
+
.url_parameter('type', type)
|
|
4529
|
+
.get
|
|
4530
|
+
.go
|
|
4531
|
+
end
|
|
4532
|
+
|
|
4473
4533
|
#
|
|
4474
4534
|
# Searches keys with the specified criteria and pagination.
|
|
4475
4535
|
#
|
|
@@ -4482,6 +4542,28 @@ module FusionAuth
|
|
|
4482
4542
|
.go
|
|
4483
4543
|
end
|
|
4484
4544
|
|
|
4545
|
+
#
|
|
4546
|
+
# Searches keys with the specified criteria and pagination.
|
|
4547
|
+
#
|
|
4548
|
+
# @param algorithm [string] (Optional) The algorithm of the key to search for.
|
|
4549
|
+
# @param name [string] (Optional) The name of the key to search for. Supports wildcard search using *.
|
|
4550
|
+
# @param number_of_results [Numeric] (Optional) The number of results to return. Defaults to 25.
|
|
4551
|
+
# @param order_by [string] (Optional) The field to order the results by. Supported values: algorithm, expiration, id, insertInstant, name, type.
|
|
4552
|
+
# @param start_row [Numeric] (Optional) The offset into the total results. Defaults to 0.
|
|
4553
|
+
# @param type [string] (Optional) The type of key to search for. Supported values: EC, HMAC, OKP, RSA.
|
|
4554
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4555
|
+
def search_keys_by_parameters(algorithm, name, number_of_results, order_by, start_row, type)
|
|
4556
|
+
start.uri('/api/key/search')
|
|
4557
|
+
.url_parameter('algorithm', algorithm)
|
|
4558
|
+
.url_parameter('name', name)
|
|
4559
|
+
.url_parameter('numberOfResults', number_of_results)
|
|
4560
|
+
.url_parameter('orderBy', order_by)
|
|
4561
|
+
.url_parameter('startRow', start_row)
|
|
4562
|
+
.url_parameter('type', type)
|
|
4563
|
+
.get
|
|
4564
|
+
.go
|
|
4565
|
+
end
|
|
4566
|
+
|
|
4485
4567
|
#
|
|
4486
4568
|
# Searches lambdas with the specified criteria and pagination.
|
|
4487
4569
|
#
|
|
@@ -4618,6 +4700,28 @@ module FusionAuth
|
|
|
4618
4700
|
.go
|
|
4619
4701
|
end
|
|
4620
4702
|
|
|
4703
|
+
#
|
|
4704
|
+
# Searches webhooks with the specified criteria and pagination.
|
|
4705
|
+
#
|
|
4706
|
+
# @param description [string] (Optional) The description of the webhook to search for. Supports wildcard search using *.
|
|
4707
|
+
# @param number_of_results [Numeric] (Optional) The number of results to return. Defaults to 25.
|
|
4708
|
+
# @param order_by [string] (Optional) The field to order the results by. Supported values: description, id, insertInstant, url.
|
|
4709
|
+
# @param start_row [Numeric] (Optional) The offset into the total results. Defaults to 0.
|
|
4710
|
+
# @param tenant_id [string] (Optional) The tenant Id to restrict the results to.
|
|
4711
|
+
# @param url [string] (Optional) The URL of the webhook to search for. Supports wildcard search using *.
|
|
4712
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4713
|
+
def search_webhooks_by_parameters(description, number_of_results, order_by, start_row, tenant_id, url)
|
|
4714
|
+
start.uri('/api/webhook/search')
|
|
4715
|
+
.url_parameter('description', description)
|
|
4716
|
+
.url_parameter('numberOfResults', number_of_results)
|
|
4717
|
+
.url_parameter('orderBy', order_by)
|
|
4718
|
+
.url_parameter('startRow', start_row)
|
|
4719
|
+
.url_parameter('tenantId', tenant_id)
|
|
4720
|
+
.url_parameter('url', url)
|
|
4721
|
+
.get
|
|
4722
|
+
.go
|
|
4723
|
+
end
|
|
4724
|
+
|
|
4621
4725
|
#
|
|
4622
4726
|
# Send an email using an email template Id. You can optionally provide <code>requestData</code> to access key value
|
|
4623
4727
|
# pairs in the email template.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fusionauth_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.69.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Pontarelli
|
|
8
8
|
- Daniel DeGroff
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: This library contains the Ruby client library that helps you connect
|
|
14
14
|
your application to FusionAuth.
|
|
@@ -23,6 +23,7 @@ files:
|
|
|
23
23
|
- ".github/fusionauth/.env"
|
|
24
24
|
- ".github/fusionauth/docker-compose.yml"
|
|
25
25
|
- ".github/fusionauth/kickstart.json"
|
|
26
|
+
- ".github/fusionauth/poll-for-kickstart-finish.sh"
|
|
26
27
|
- ".github/workflows/deploy.yaml"
|
|
27
28
|
- ".github/workflows/docs.yml"
|
|
28
29
|
- ".github/workflows/test.yml"
|