fusionauth_client 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build.savant +1 -1
- data/fusionauth-ruby-client.iml +1 -0
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +108 -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: dc8683bec78042fd17d0ed2562955670a75ab9bdd27ceceb5bffb89a6654ee64
|
4
|
+
data.tar.gz: 49e6fe7639264e156c6eaddeddfc64ab48dff2c7cab681e598b2f734816a729f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2419465cf01b55dbaea773b8f60ac996ab9028911a785fbfb508caa858ca0d11805d37bcb614c69a6e12d291f8b40daabd26e57bf86ce746f8b014be2f46c63
|
7
|
+
data.tar.gz: c3ade115fec4b7e2aceb1038aa8e168ecd7780b616e8a44e9a05d3fbfb71f19603fec9e83f4d236e3620799c8ae4e06c1234755442317db74eeb21cf7e05c284
|
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.6.0", licenses: ["ApacheV2_0"]) {
|
20
20
|
workflow {
|
21
21
|
standard()
|
22
22
|
}
|
data/fusionauth-ruby-client.iml
CHANGED
@@ -8,6 +8,7 @@
|
|
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" />
|
11
12
|
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.3.1) [gem]" level="application" />
|
12
13
|
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 2.3.1) [gem]" level="application" />
|
13
14
|
</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.6.0'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -450,6 +450,19 @@ module FusionAuth
|
|
450
450
|
.go()
|
451
451
|
end
|
452
452
|
|
453
|
+
#
|
454
|
+
# Deletes the key for the given Id.
|
455
|
+
#
|
456
|
+
# @param key_od [string] The Id of the key to delete.
|
457
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
458
|
+
#
|
459
|
+
def delete_key(key_od)
|
460
|
+
start.uri('/api/key')
|
461
|
+
.url_segment(key_od)
|
462
|
+
.delete()
|
463
|
+
.go()
|
464
|
+
end
|
465
|
+
|
453
466
|
#
|
454
467
|
# Deletes the lambda for the given Id.
|
455
468
|
#
|
@@ -631,6 +644,21 @@ module FusionAuth
|
|
631
644
|
.go()
|
632
645
|
end
|
633
646
|
|
647
|
+
#
|
648
|
+
# Generate a new RSA or EC key pair or an HMAC secret.
|
649
|
+
#
|
650
|
+
# @param key_id [string] (Optional) The Id for the key. If not provided a secure random UUID will be generated.
|
651
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to create the key.
|
652
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
653
|
+
#
|
654
|
+
def generate_key(key_id, request)
|
655
|
+
start.uri('/api/key/generate')
|
656
|
+
.url_segment(key_id)
|
657
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
658
|
+
.post()
|
659
|
+
.go()
|
660
|
+
end
|
661
|
+
|
634
662
|
#
|
635
663
|
# Generate a new Application Registration Verification Id to be used with the Verify Registration API. This API will not attempt to send an
|
636
664
|
# email to the User. This API may be used to collect the verificationId for use with a third party system.
|
@@ -691,6 +719,21 @@ module FusionAuth
|
|
691
719
|
.go()
|
692
720
|
end
|
693
721
|
|
722
|
+
#
|
723
|
+
# Import an existing RSA or EC key pair or an HMAC secret.
|
724
|
+
#
|
725
|
+
# @param key_id [string] (Optional) The Id for the key. If not provided a secure random UUID will be generated.
|
726
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to create the key.
|
727
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
728
|
+
#
|
729
|
+
def import_key(key_id, request)
|
730
|
+
start.uri('/api/key/import')
|
731
|
+
.url_segment(key_id)
|
732
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
733
|
+
.post()
|
734
|
+
.go()
|
735
|
+
end
|
736
|
+
|
694
737
|
#
|
695
738
|
# Bulk imports multiple users. This does some validation, but then tries to run batch inserts of users. This reduces
|
696
739
|
# latency when inserting lots of users. Therefore, the error response might contain some information about failures,
|
@@ -1073,6 +1116,19 @@ module FusionAuth
|
|
1073
1116
|
.go()
|
1074
1117
|
end
|
1075
1118
|
|
1119
|
+
#
|
1120
|
+
# Retrieves a single event log for the given Id.
|
1121
|
+
#
|
1122
|
+
# @param event_log_id [Numeric] The Id of the event log to retrieve.
|
1123
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1124
|
+
#
|
1125
|
+
def retrieve_event_log(event_log_id)
|
1126
|
+
start.uri('/api/system/event-log')
|
1127
|
+
.url_segment(event_log_id)
|
1128
|
+
.get()
|
1129
|
+
.go()
|
1130
|
+
end
|
1131
|
+
|
1076
1132
|
#
|
1077
1133
|
# Retrieves the group for the given Id.
|
1078
1134
|
#
|
@@ -1197,6 +1253,30 @@ module FusionAuth
|
|
1197
1253
|
.go()
|
1198
1254
|
end
|
1199
1255
|
|
1256
|
+
#
|
1257
|
+
# Retrieves the key for the given Id.
|
1258
|
+
#
|
1259
|
+
# @param key_id [string] The Id of the key.
|
1260
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1261
|
+
#
|
1262
|
+
def retrieve_key(key_id)
|
1263
|
+
start.uri('/api/key')
|
1264
|
+
.url_segment(key_id)
|
1265
|
+
.get()
|
1266
|
+
.go()
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
#
|
1270
|
+
# Retrieves all of the keys.
|
1271
|
+
#
|
1272
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1273
|
+
#
|
1274
|
+
def retrieve_keys()
|
1275
|
+
start.uri('/api/key')
|
1276
|
+
.get()
|
1277
|
+
.go()
|
1278
|
+
end
|
1279
|
+
|
1200
1280
|
#
|
1201
1281
|
# Retrieves the lambda for the given Id.
|
1202
1282
|
#
|
@@ -1221,6 +1301,19 @@ module FusionAuth
|
|
1221
1301
|
.go()
|
1222
1302
|
end
|
1223
1303
|
|
1304
|
+
#
|
1305
|
+
# Retrieves all of the lambdas for the provided type.
|
1306
|
+
#
|
1307
|
+
# @param type [OpenStruct, Hash] The type of the lambda to return.
|
1308
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1309
|
+
#
|
1310
|
+
def retrieve_lambdas_by_type(type)
|
1311
|
+
start.uri('/api/lambda')
|
1312
|
+
.url_parameter('type', type)
|
1313
|
+
.get()
|
1314
|
+
.go()
|
1315
|
+
end
|
1316
|
+
|
1224
1317
|
#
|
1225
1318
|
# Retrieves the login report between the two instants. If you specify an application id, it will only return the
|
1226
1319
|
# login counts for that application.
|
@@ -1857,6 +1950,21 @@ module FusionAuth
|
|
1857
1950
|
.go()
|
1858
1951
|
end
|
1859
1952
|
|
1953
|
+
#
|
1954
|
+
# Updates the key with the given Id.
|
1955
|
+
#
|
1956
|
+
# @param key_id [string] The Id of the key to update.
|
1957
|
+
# @param request [OpenStruct, Hash] The request that contains all of the new key information.
|
1958
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1959
|
+
#
|
1960
|
+
def update_key(key_id, request)
|
1961
|
+
start.uri('/api/key')
|
1962
|
+
.url_segment(key_id)
|
1963
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1964
|
+
.put()
|
1965
|
+
.go()
|
1966
|
+
end
|
1967
|
+
|
1860
1968
|
#
|
1861
1969
|
# Updates the lambda with the given Id.
|
1862
1970
|
#
|
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.6.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-04-29 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.
|