fusionauth_client 1.27.2 → 1.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/build.savant +1 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +85 -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: ba0a948430d381623a2284f06d8fab72d1a6547475df8b1a7f19208e785fc72f
|
4
|
+
data.tar.gz: 5c848be1487fc76c2bd45bb5982204a1d38305b40547f40203f099ed352e2b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e4efd2ed79453f1ec5137abe1b030ac90e45b5c8975139cc1f527fcb3b307eca88bde3d6a83ac81718dff160085ce99a3a108b38dfc02d4cd1c5ee26aa212c7
|
7
|
+
data.tar.gz: 8e8b75dc51af13f096e7606463a1cf0effe265c866de3656a3df68e674b880c9de9185e4d06281272c43dfa71e9539ebdf2d861ca3e4610ee58da0c943c39fd4
|
data/Gemfile.lock
CHANGED
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.28.0", licenses: ["ApacheV2_0"]) {
|
20
20
|
workflow {
|
21
21
|
standard()
|
22
22
|
}
|
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.28.0'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -499,6 +499,18 @@ module FusionAuth
|
|
499
499
|
.go()
|
500
500
|
end
|
501
501
|
|
502
|
+
#
|
503
|
+
# Link an external user from a 3rd party identity provider to a FusionAuth user.
|
504
|
+
#
|
505
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to link the FusionAuth user.
|
506
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
507
|
+
def create_user_link(request)
|
508
|
+
start.uri('/api/identity-provider/link')
|
509
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
510
|
+
.post()
|
511
|
+
.go()
|
512
|
+
end
|
513
|
+
|
502
514
|
#
|
503
515
|
# Creates a webhook. You can optionally specify an Id for the webhook, if not provided one will be generated.
|
504
516
|
#
|
@@ -925,6 +937,22 @@ module FusionAuth
|
|
925
937
|
.go()
|
926
938
|
end
|
927
939
|
|
940
|
+
#
|
941
|
+
# Remove an existing link that has been made from a 3rd party identity provider to a FusionAuth user.
|
942
|
+
#
|
943
|
+
# @param identity_provider_id [string] The unique Id of the identity provider.
|
944
|
+
# @param identity_provider_user_id [string] The unique Id of the user in the 3rd party identity provider to unlink.
|
945
|
+
# @param user_id [string] The unique Id of the FusionAuth user to unlink.
|
946
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
947
|
+
def delete_user_link(identity_provider_id, identity_provider_user_id, user_id)
|
948
|
+
start.uri('/api/identity-provider/link')
|
949
|
+
.url_parameter('identityProviderId', identity_provider_id)
|
950
|
+
.url_parameter('identityProviderUserId', identity_provider_user_id)
|
951
|
+
.url_parameter('userId', user_id)
|
952
|
+
.delete()
|
953
|
+
.go()
|
954
|
+
end
|
955
|
+
|
928
956
|
#
|
929
957
|
# Deletes the users with the given ids, or users matching the provided JSON query or queryString.
|
930
958
|
# The order of preference is ids, query and then queryString, it is recommended to only provide one of the three for the request.
|
@@ -1801,6 +1829,22 @@ module FusionAuth
|
|
1801
1829
|
.go()
|
1802
1830
|
end
|
1803
1831
|
|
1832
|
+
#
|
1833
|
+
# Requests Elasticsearch to delete and rebuild the index for FusionAuth users or entities. Be very careful when running this request as it will
|
1834
|
+
# increase the CPU and I/O load on your database until the operation completes. Generally speaking you do not ever need to run this operation unless
|
1835
|
+
# instructed by FusionAuth support, or if you are migrating a database another system and you are not brining along the Elasticsearch index.
|
1836
|
+
#
|
1837
|
+
# You have been warned.
|
1838
|
+
#
|
1839
|
+
# @param request [OpenStruct, Hash] The request that contains the index name.
|
1840
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1841
|
+
def reindex(request)
|
1842
|
+
start.uri('/api/system/reindex')
|
1843
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1844
|
+
.post()
|
1845
|
+
.go()
|
1846
|
+
end
|
1847
|
+
|
1804
1848
|
#
|
1805
1849
|
# Removes a user from the family with the given id.
|
1806
1850
|
#
|
@@ -2617,6 +2661,17 @@ module FusionAuth
|
|
2617
2661
|
.go()
|
2618
2662
|
end
|
2619
2663
|
|
2664
|
+
#
|
2665
|
+
# Retrieve the status of a re-index process. A status code of 200 indicates the re-index is in progress, a status code of
|
2666
|
+
# 404 indicates no re-index is in progress.
|
2667
|
+
#
|
2668
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2669
|
+
def retrieve_reindex_status()
|
2670
|
+
start.uri('/api/system/reindex')
|
2671
|
+
.get()
|
2672
|
+
.go()
|
2673
|
+
end
|
2674
|
+
|
2620
2675
|
#
|
2621
2676
|
# Retrieves the system configuration.
|
2622
2677
|
#
|
@@ -2862,6 +2917,36 @@ module FusionAuth
|
|
2862
2917
|
.go()
|
2863
2918
|
end
|
2864
2919
|
|
2920
|
+
#
|
2921
|
+
# Retrieve a single Identity Provider user (link).
|
2922
|
+
#
|
2923
|
+
# @param identity_provider_id [string] The unique Id of the identity provider.
|
2924
|
+
# @param identity_provider_user_id [string] The unique Id of the user in the 3rd party identity provider.
|
2925
|
+
# @param user_id [string] The unique Id of the FusionAuth user.
|
2926
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2927
|
+
def retrieve_user_link(identity_provider_id, identity_provider_user_id, user_id)
|
2928
|
+
start.uri('/api/identity-provider/link')
|
2929
|
+
.url_parameter('identityProviderId', identity_provider_id)
|
2930
|
+
.url_parameter('identityProviderUserId', identity_provider_user_id)
|
2931
|
+
.url_parameter('userId', user_id)
|
2932
|
+
.get()
|
2933
|
+
.go()
|
2934
|
+
end
|
2935
|
+
|
2936
|
+
#
|
2937
|
+
# Retrieve all Identity Provider users (links) for the user. Specify the optional identityProviderId to retrieve links for a particular IdP.
|
2938
|
+
#
|
2939
|
+
# @param identity_provider_id [string] (Optional) The unique Id of the identity provider. Specify this value to reduce the links returned to those for a particular IdP.
|
2940
|
+
# @param user_id [string] The unique Id of the user.
|
2941
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2942
|
+
def retrieve_user_links_by_user_id(identity_provider_id, user_id)
|
2943
|
+
start.uri('/api/identity-provider/link')
|
2944
|
+
.url_parameter('identityProviderId', identity_provider_id)
|
2945
|
+
.url_parameter('userId', user_id)
|
2946
|
+
.get()
|
2947
|
+
.go()
|
2948
|
+
end
|
2949
|
+
|
2865
2950
|
#
|
2866
2951
|
# Retrieves the login report between the two instants for a particular user by Id. If you specify an application id, it will only return the
|
2867
2952
|
# login counts for that application.
|
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.28.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: 2021-
|
12
|
+
date: 2021-06-07 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.
|