fusionauth_client 1.4.0 → 1.5.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/build.savant +1 -1
- data/fusionauth-ruby-client.iml +0 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +121 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ee090ec6cc985e046cc2f2e6b1875a0cee7b8ed9a82e1a0a64f12a0c42eb41b
|
4
|
+
data.tar.gz: dae2216cfae3abdae740f2e06c1b0321fa5e407f3d1ce6499092c93b797d147d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e89f164e89379c4ecf94b0490cdaad9b3a61c97c8d97245a172e7ee327962ad85e3876cf1481be3028796b2d31b8b579fb93cbf8c3b372af288d4044e22a7d14
|
7
|
+
data.tar.gz: 4c53b33ca267eeb04eff585e9f4a9ec85ac26432853c28683b88512c285d597ca02ff1e723b2933567a864269687ff368add004cb9ec3d50d019a938a499edbc
|
data/build.savant
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
savantVersion = "1.0.0"
|
17
17
|
|
18
18
|
pubVersion = ""
|
19
|
-
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.
|
19
|
+
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.5.0", licenses: ["ApacheV2_0"]) {
|
20
20
|
workflow {
|
21
21
|
standard()
|
22
22
|
}
|
data/fusionauth-ruby-client.iml
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
</content>
|
9
9
|
<orderEntry type="jdk" jdkName="rbenv: 2.3.1" jdkType="RUBY_SDK" />
|
10
10
|
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.1, rbenv: 2.3.1) [gem]" level="application" />
|
12
11
|
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.3.1) [gem]" level="application" />
|
13
12
|
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 2.3.1) [gem]" level="application" />
|
14
13
|
</component>
|
data/fusionauth_client.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'fusionauth_client'
|
7
|
-
spec.version = '1.
|
7
|
+
spec.version = '1.5.0'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -220,6 +220,21 @@ module FusionAuth
|
|
220
220
|
.go()
|
221
221
|
end
|
222
222
|
|
223
|
+
#
|
224
|
+
# Creates a Lambda. You can optionally specify an Id for the lambda, if not provided one will be generated.
|
225
|
+
#
|
226
|
+
# @param lambda_id [string] (Optional) The Id for the lambda. If not provided a secure random UUID will be generated.
|
227
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to create the lambda.
|
228
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
229
|
+
#
|
230
|
+
def create_lambda(lambda_id, request)
|
231
|
+
start.uri('/api/lambda')
|
232
|
+
.url_segment(lambda_id)
|
233
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
234
|
+
.post()
|
235
|
+
.go()
|
236
|
+
end
|
237
|
+
|
223
238
|
#
|
224
239
|
# Creates a tenant. You can optionally specify an Id for the tenant, if not provided one will be generated.
|
225
240
|
#
|
@@ -435,6 +450,19 @@ module FusionAuth
|
|
435
450
|
.go()
|
436
451
|
end
|
437
452
|
|
453
|
+
#
|
454
|
+
# Deletes the lambda for the given Id.
|
455
|
+
#
|
456
|
+
# @param lambda_id [string] The Id of the lambda to delete.
|
457
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
458
|
+
#
|
459
|
+
def delete_lambda(lambda_id)
|
460
|
+
start.uri('/api/lambda')
|
461
|
+
.url_segment(lambda_id)
|
462
|
+
.delete()
|
463
|
+
.go()
|
464
|
+
end
|
465
|
+
|
438
466
|
#
|
439
467
|
# Deletes the user registration for the given user and application.
|
440
468
|
#
|
@@ -780,6 +808,19 @@ module FusionAuth
|
|
780
808
|
.go()
|
781
809
|
end
|
782
810
|
|
811
|
+
#
|
812
|
+
# Complete a login request using a passwordless code
|
813
|
+
#
|
814
|
+
# @param request [OpenStruct, Hash] The passwordless login request that contains all of the information used to complete login.
|
815
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
816
|
+
#
|
817
|
+
def passwordless_login(request)
|
818
|
+
start.uri('/api/passwordless/login')
|
819
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
820
|
+
.post()
|
821
|
+
.go()
|
822
|
+
end
|
823
|
+
|
783
824
|
#
|
784
825
|
# Reactivates the application with the given Id.
|
785
826
|
#
|
@@ -1080,6 +1121,21 @@ module FusionAuth
|
|
1080
1121
|
.go()
|
1081
1122
|
end
|
1082
1123
|
|
1124
|
+
#
|
1125
|
+
# Retrieves all of the actions for the user with the given Id that are currently inactive.
|
1126
|
+
# An inactive action means one that is time based and has been canceled or has expired, or is not time based.
|
1127
|
+
#
|
1128
|
+
# @param user_id [string] The Id of the user to fetch the actions for.
|
1129
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1130
|
+
#
|
1131
|
+
def retrieve_inactive_actions(user_id)
|
1132
|
+
start.uri('/api/user/action')
|
1133
|
+
.url_parameter('userId', user_id)
|
1134
|
+
.url_parameter('active', false)
|
1135
|
+
.get()
|
1136
|
+
.go()
|
1137
|
+
end
|
1138
|
+
|
1083
1139
|
#
|
1084
1140
|
# Retrieves all of the applications that are currently inactive.
|
1085
1141
|
#
|
@@ -1141,6 +1197,30 @@ module FusionAuth
|
|
1141
1197
|
.go()
|
1142
1198
|
end
|
1143
1199
|
|
1200
|
+
#
|
1201
|
+
# Retrieves the lambda for the given Id.
|
1202
|
+
#
|
1203
|
+
# @param lambda_id [string] The Id of the lambda.
|
1204
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1205
|
+
#
|
1206
|
+
def retrieve_lambda(lambda_id)
|
1207
|
+
start.uri('/api/lambda')
|
1208
|
+
.url_segment(lambda_id)
|
1209
|
+
.get()
|
1210
|
+
.go()
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
#
|
1214
|
+
# Retrieves all of the lambdas.
|
1215
|
+
#
|
1216
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1217
|
+
#
|
1218
|
+
def retrieve_lambdas()
|
1219
|
+
start.uri('/api/lambda')
|
1220
|
+
.get()
|
1221
|
+
.go()
|
1222
|
+
end
|
1223
|
+
|
1144
1224
|
#
|
1145
1225
|
# Retrieves the login report between the two instants. If you specify an application id, it will only return the
|
1146
1226
|
# login counts for that application.
|
@@ -1578,6 +1658,19 @@ module FusionAuth
|
|
1578
1658
|
.go()
|
1579
1659
|
end
|
1580
1660
|
|
1661
|
+
#
|
1662
|
+
# Searches the event logs with the specified criteria and pagination.
|
1663
|
+
#
|
1664
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
1665
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1666
|
+
#
|
1667
|
+
def search_event_logs(request)
|
1668
|
+
start.uri('/api/system/event-log/search')
|
1669
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1670
|
+
.post()
|
1671
|
+
.go()
|
1672
|
+
end
|
1673
|
+
|
1581
1674
|
#
|
1582
1675
|
# Retrieves the users for the given ids. If any id is invalid, it is ignored.
|
1583
1676
|
#
|
@@ -1621,6 +1714,19 @@ module FusionAuth
|
|
1621
1714
|
.go()
|
1622
1715
|
end
|
1623
1716
|
|
1717
|
+
#
|
1718
|
+
# Send a passwordless authentication code in an email to complete login.
|
1719
|
+
#
|
1720
|
+
# @param request [OpenStruct, Hash] The passwordless send request that contains all of the information used to send an email containing a code.
|
1721
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1722
|
+
#
|
1723
|
+
def send_passwordless_code(request)
|
1724
|
+
start.uri('/api/passwordless/send')
|
1725
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1726
|
+
.post()
|
1727
|
+
.go()
|
1728
|
+
end
|
1729
|
+
|
1624
1730
|
#
|
1625
1731
|
# Send a Two Factor authentication code to assist in setting up Two Factor authentication or disabling.
|
1626
1732
|
#
|
@@ -1751,6 +1857,21 @@ module FusionAuth
|
|
1751
1857
|
.go()
|
1752
1858
|
end
|
1753
1859
|
|
1860
|
+
#
|
1861
|
+
# Updates the lambda with the given Id.
|
1862
|
+
#
|
1863
|
+
# @param lambda_id [string] The Id of the lambda to update.
|
1864
|
+
# @param request [OpenStruct, Hash] The request that contains all of the new lambda information.
|
1865
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1866
|
+
#
|
1867
|
+
def update_lambda(lambda_id, request)
|
1868
|
+
start.uri('/api/lambda')
|
1869
|
+
.url_segment(lambda_id)
|
1870
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1871
|
+
.put()
|
1872
|
+
.go()
|
1873
|
+
end
|
1874
|
+
|
1754
1875
|
#
|
1755
1876
|
# Updates the registration for the user with the given id and the application defined in the request.
|
1756
1877
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fusionauth_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pontarelli
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This library contains the Ruby client library that helps you connect
|
15
15
|
your application to FusionAuth.
|