fusionauth_client 1.29.0 → 1.31.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/Gemfile.lock +1 -1
- data/build.savant +1 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +183 -2
- 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: 797d23a1d462217a91f20bf6a6bc9176f186f9522ffbd739bd526e728c3945f4
|
4
|
+
data.tar.gz: dbbe0ceeb2c7674889a8be4064b99856aa05cec8eddbb2221add95907331f1c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faef055bf17d8ae7328cb621056531732081015b06e5b8f6dbc728af9cafe5f3793bd52858e3801022b7541b9a6e0b29350b6f544e74a9c56eb64f2f1ad772a6
|
7
|
+
data.tar.gz: b80fa21d86d76e1dfd6b44b5bb4ae051d6d629a97948ad5352af3a46cf07116a3ade7883dc020cad43470dd9acde8527616b1e95438bbcd8837394fc62cbfe23
|
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.31.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.31.0'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -357,6 +357,20 @@ module FusionAuth
|
|
357
357
|
.go()
|
358
358
|
end
|
359
359
|
|
360
|
+
#
|
361
|
+
# Creates an IP Access Control List. You can optionally specify an Id on this create request, if one is not provided one will be generated.
|
362
|
+
#
|
363
|
+
# @param access_control_list_id [string] (Optional) The Id for the IP Access Control List. If not provided a secure random UUID will be generated.
|
364
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to create the IP Access Control List.
|
365
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
366
|
+
def create_ip_access_control_list(access_control_list_id, request)
|
367
|
+
start.uri('/api/ip-acl')
|
368
|
+
.url_segment(access_control_list_id)
|
369
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
370
|
+
.post()
|
371
|
+
.go()
|
372
|
+
end
|
373
|
+
|
360
374
|
#
|
361
375
|
# Creates an identity provider. You can optionally specify an Id for the identity provider, if not provided one will be generated.
|
362
376
|
#
|
@@ -785,6 +799,18 @@ module FusionAuth
|
|
785
799
|
.go()
|
786
800
|
end
|
787
801
|
|
802
|
+
#
|
803
|
+
# Deletes the IP Access Control List for the given Id.
|
804
|
+
#
|
805
|
+
# @param ip_access_control_list_id [string] The Id of the IP Access Control List to delete.
|
806
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
807
|
+
def delete_ip_access_control_list(ip_access_control_list_id)
|
808
|
+
start.uri('/api/ip-acl')
|
809
|
+
.url_segment(ip_access_control_list_id)
|
810
|
+
.delete()
|
811
|
+
.go()
|
812
|
+
end
|
813
|
+
|
788
814
|
#
|
789
815
|
# Deletes the identity provider for the given Id.
|
790
816
|
#
|
@@ -860,7 +886,24 @@ module FusionAuth
|
|
860
886
|
end
|
861
887
|
|
862
888
|
#
|
863
|
-
# Deletes the
|
889
|
+
# Deletes the user registration for the given user and application along with the given JSON body that contains the event information.
|
890
|
+
#
|
891
|
+
# @param user_id [string] The Id of the user whose registration is being deleted.
|
892
|
+
# @param application_id [string] The Id of the application to remove the registration for.
|
893
|
+
# @param request [OpenStruct, Hash] The request body that contains the event information.
|
894
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
895
|
+
def delete_registration_with_request(user_id, application_id, request)
|
896
|
+
start.uri('/api/user/registration')
|
897
|
+
.url_segment(user_id)
|
898
|
+
.url_segment(application_id)
|
899
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
900
|
+
.delete()
|
901
|
+
.go()
|
902
|
+
end
|
903
|
+
|
904
|
+
#
|
905
|
+
# Deletes the tenant based on the given Id on the URL. This permanently deletes all information, metrics, reports and data associated
|
906
|
+
# with the tenant and everything under the tenant (applications, users, etc).
|
864
907
|
#
|
865
908
|
# @param tenant_id [string] The Id of the tenant to delete.
|
866
909
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -885,6 +928,21 @@ module FusionAuth
|
|
885
928
|
.go()
|
886
929
|
end
|
887
930
|
|
931
|
+
#
|
932
|
+
# Deletes the tenant based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated
|
933
|
+
# with the tenant and everything under the tenant (applications, users, etc).
|
934
|
+
#
|
935
|
+
# @param tenant_id [string] The Id of the tenant to delete.
|
936
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to delete the user.
|
937
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
938
|
+
def delete_tenant_with_request(tenant_id, request)
|
939
|
+
start.uri('/api/tenant')
|
940
|
+
.url_segment(tenant_id)
|
941
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
942
|
+
.delete()
|
943
|
+
.go()
|
944
|
+
end
|
945
|
+
|
888
946
|
#
|
889
947
|
# Deletes the theme for the given Id.
|
890
948
|
#
|
@@ -953,6 +1011,21 @@ module FusionAuth
|
|
953
1011
|
.go()
|
954
1012
|
end
|
955
1013
|
|
1014
|
+
#
|
1015
|
+
# Deletes the user based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated
|
1016
|
+
# with the user.
|
1017
|
+
#
|
1018
|
+
# @param user_id [string] The Id of the user to delete (required).
|
1019
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to delete the user.
|
1020
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1021
|
+
def delete_user_with_request(user_id, request)
|
1022
|
+
start.uri('/api/user')
|
1023
|
+
.url_segment(user_id)
|
1024
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1025
|
+
.delete()
|
1026
|
+
.go()
|
1027
|
+
end
|
1028
|
+
|
956
1029
|
#
|
957
1030
|
# Deletes the users with the given ids, or users matching the provided JSON query or queryString.
|
958
1031
|
# The order of preference is ids, query and then queryString, it is recommended to only provide one of the three for the request.
|
@@ -1007,13 +1080,27 @@ module FusionAuth
|
|
1007
1080
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1008
1081
|
def disable_two_factor(user_id, method_id, code)
|
1009
1082
|
start.uri('/api/user/two-factor')
|
1010
|
-
.
|
1083
|
+
.url_segment(user_id)
|
1011
1084
|
.url_parameter('methodId', method_id)
|
1012
1085
|
.url_parameter('code', code)
|
1013
1086
|
.delete()
|
1014
1087
|
.go()
|
1015
1088
|
end
|
1016
1089
|
|
1090
|
+
#
|
1091
|
+
# Disable Two Factor authentication for a user using a JSON body rather than URL parameters.
|
1092
|
+
#
|
1093
|
+
# @param user_id [string] The Id of the User for which you're disabling Two Factor authentication.
|
1094
|
+
# @param request [OpenStruct, Hash] The request information that contains the code and methodId along with any event information.
|
1095
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1096
|
+
def disable_two_factor_with_request(user_id, request)
|
1097
|
+
start.uri('/api/user/two-factor')
|
1098
|
+
.url_segment(user_id)
|
1099
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1100
|
+
.delete()
|
1101
|
+
.go()
|
1102
|
+
end
|
1103
|
+
|
1017
1104
|
#
|
1018
1105
|
# Enable Two Factor authentication for a user.
|
1019
1106
|
#
|
@@ -1391,6 +1478,19 @@ module FusionAuth
|
|
1391
1478
|
.go()
|
1392
1479
|
end
|
1393
1480
|
|
1481
|
+
#
|
1482
|
+
# The Logout API is intended to be used to remove the refresh token and access token cookies if they exist on the
|
1483
|
+
# client and revoke the refresh token stored. This API takes the refresh token in the JSON body.
|
1484
|
+
#
|
1485
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to logout the user.
|
1486
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1487
|
+
def logout_with_request(request)
|
1488
|
+
startAnonymous.uri('/api/logout')
|
1489
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
1490
|
+
.post()
|
1491
|
+
.go()
|
1492
|
+
end
|
1493
|
+
|
1394
1494
|
#
|
1395
1495
|
# Retrieves the identity provider for the given domain. A 200 response code indicates the domain is managed
|
1396
1496
|
# by a registered identity provider. A 404 indicates the domain is not managed.
|
@@ -2248,6 +2348,18 @@ module FusionAuth
|
|
2248
2348
|
.go()
|
2249
2349
|
end
|
2250
2350
|
|
2351
|
+
#
|
2352
|
+
# Retrieves the IP Access Control List with the given Id.
|
2353
|
+
#
|
2354
|
+
# @param ip_access_control_list_id [string] The Id of the IP Access Control List.
|
2355
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2356
|
+
def retrieve_ip_access_control_list(ip_access_control_list_id)
|
2357
|
+
start.uri('/api/ip-acl')
|
2358
|
+
.url_segment(ip_access_control_list_id)
|
2359
|
+
.get()
|
2360
|
+
.go()
|
2361
|
+
end
|
2362
|
+
|
2251
2363
|
#
|
2252
2364
|
# Retrieves the identity provider for the given id or all of the identity providers if the id is null.
|
2253
2365
|
#
|
@@ -2582,6 +2694,16 @@ module FusionAuth
|
|
2582
2694
|
.go()
|
2583
2695
|
end
|
2584
2696
|
|
2697
|
+
#
|
2698
|
+
# Retrieves the FusionAuth Reactor metrics.
|
2699
|
+
#
|
2700
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2701
|
+
def retrieve_reactor_metrics()
|
2702
|
+
start.uri('/api/reactor/metrics')
|
2703
|
+
.get()
|
2704
|
+
.go()
|
2705
|
+
end
|
2706
|
+
|
2585
2707
|
#
|
2586
2708
|
# Retrieves the FusionAuth Reactor status.
|
2587
2709
|
#
|
@@ -3146,6 +3268,19 @@ module FusionAuth
|
|
3146
3268
|
.go()
|
3147
3269
|
end
|
3148
3270
|
|
3271
|
+
#
|
3272
|
+
# Revokes refresh tokens using the information in the JSON body. The handling for this method is the same as the revokeRefreshToken method
|
3273
|
+
# and is based on the information you provide in the RefreshDeleteRequest object. See that method for additional information.
|
3274
|
+
#
|
3275
|
+
# @param request [OpenStruct, Hash] The request information used to revoke the refresh tokens.
|
3276
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3277
|
+
def revoke_refresh_tokens_with_request(request)
|
3278
|
+
start.uri('/api/jwt/refresh')
|
3279
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3280
|
+
.delete()
|
3281
|
+
.go()
|
3282
|
+
end
|
3283
|
+
|
3149
3284
|
#
|
3150
3285
|
# Revokes a single User consent by Id.
|
3151
3286
|
#
|
@@ -3230,6 +3365,18 @@ module FusionAuth
|
|
3230
3365
|
.go()
|
3231
3366
|
end
|
3232
3367
|
|
3368
|
+
#
|
3369
|
+
# Searches the IP Access Control Lists with the specified criteria and pagination.
|
3370
|
+
#
|
3371
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3372
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3373
|
+
def search_ip_access_control_lists(request)
|
3374
|
+
start.uri('/api/ip-acl/search')
|
3375
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3376
|
+
.post()
|
3377
|
+
.go()
|
3378
|
+
end
|
3379
|
+
|
3233
3380
|
#
|
3234
3381
|
# Searches the login records with the specified criteria and pagination.
|
3235
3382
|
#
|
@@ -3614,6 +3761,20 @@ module FusionAuth
|
|
3614
3761
|
.go()
|
3615
3762
|
end
|
3616
3763
|
|
3764
|
+
#
|
3765
|
+
# Updates the IP Access Control List with the given Id.
|
3766
|
+
#
|
3767
|
+
# @param access_control_list_id [string] The Id of the IP Access Control List to update.
|
3768
|
+
# @param request [OpenStruct, Hash] The request that contains all of the new IP Access Control List information.
|
3769
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3770
|
+
def update_ip_access_control_list(access_control_list_id, request)
|
3771
|
+
start.uri('/api/ip-acl')
|
3772
|
+
.url_segment(access_control_list_id)
|
3773
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3774
|
+
.put()
|
3775
|
+
.go()
|
3776
|
+
end
|
3777
|
+
|
3617
3778
|
#
|
3618
3779
|
# Updates the identity provider with the given Id.
|
3619
3780
|
#
|
@@ -3865,6 +4026,26 @@ module FusionAuth
|
|
3865
4026
|
.go()
|
3866
4027
|
end
|
3867
4028
|
|
4029
|
+
#
|
4030
|
+
# It's a JWT vending machine!
|
4031
|
+
#
|
4032
|
+
# Issue a new access token (JWT) with the provided claims in the request. This JWT is not scoped to a tenant or user, it is a free form
|
4033
|
+
# token that will contain what claims you provide.
|
4034
|
+
# <p>
|
4035
|
+
# The iat, exp and jti claims will be added by FusionAuth, all other claims must be provided by the caller.
|
4036
|
+
#
|
4037
|
+
# If a TTL is not provided in the request, the TTL will be retrieved from the default Tenant or the Tenant specified on the request either
|
4038
|
+
# by way of the X-FusionAuth-TenantId request header, or a tenant scoped API key.
|
4039
|
+
#
|
4040
|
+
# @param request [OpenStruct, Hash] The request that contains all of the claims for this JWT.
|
4041
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4042
|
+
def vend_jwt(request)
|
4043
|
+
start.uri('/api/jwt/vend')
|
4044
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
4045
|
+
.post()
|
4046
|
+
.go()
|
4047
|
+
end
|
4048
|
+
|
3868
4049
|
#
|
3869
4050
|
# Confirms a email verification. The Id given is usually from an email sent to the user.
|
3870
4051
|
#
|
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.31.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-11-19 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.
|