fusionauth_client 1.44.0 → 1.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/build.savant +4 -4
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +271 -55
- 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: 188a214d179542598a99c19b42cee7ded5a4fe5401833b7cd68c61f1ed116bc0
|
4
|
+
data.tar.gz: 7648163d9f63e75d8463a38d86108264036859942bf67208f671b49e363add09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8858c3bc5dce7ab05d4a74d647fbc5e0081c9c60dd10e9325172f41f770ce65a01f12cab19ba0b457d8833849ff812284b9fb619f4175ebd9ec10185f33b17a
|
7
|
+
data.tar.gz: 3d0db52b315ccbadbc0706e3f9030249d569f928e62d8def29a82bfdb0e51e2730ed397eb6a7f42e8bb3c97491dca6cbe44e279bb0c4639760a59df7d8d6ef45
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/build.savant
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2018-
|
2
|
+
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved
|
3
3
|
*
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
* you may not use this file except in compliance with the License.
|
@@ -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.46.0", licenses: ["ApacheV2_0"]) {
|
19
19
|
workflow {
|
20
20
|
fetch {
|
21
21
|
cache()
|
@@ -39,8 +39,8 @@ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.44.0
|
|
39
39
|
}
|
40
40
|
|
41
41
|
// Plugins
|
42
|
-
file = loadPlugin(id: "org.savantbuild.plugin:file:2.0.0-RC.
|
43
|
-
release = loadPlugin(id: "org.savantbuild.plugin:release-git:2.0.0-RC.
|
42
|
+
file = loadPlugin(id: "org.savantbuild.plugin:file:2.0.0-RC.6")
|
43
|
+
release = loadPlugin(id: "org.savantbuild.plugin:release-git:2.0.0-RC.6")
|
44
44
|
|
45
45
|
target(name: "clean", description: "Cleans build directory") {
|
46
46
|
file.prune(dir: 'pkg')
|
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.46.0'
|
23
23
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
24
24
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
25
25
|
|
@@ -45,7 +45,7 @@ module FusionAuth
|
|
45
45
|
# Takes an action on a user. The user being actioned is called the "actionee" and the user taking the action is called the
|
46
46
|
# "actioner". Both user ids are required in the request object.
|
47
47
|
#
|
48
|
-
# @param request [OpenStruct, Hash] The action request that includes all
|
48
|
+
# @param request [OpenStruct, Hash] The action request that includes all the information about the action being taken including
|
49
49
|
# the id of the action, any options and the duration (if applicable).
|
50
50
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
51
51
|
def action_user(request)
|
@@ -81,6 +81,27 @@ module FusionAuth
|
|
81
81
|
.go()
|
82
82
|
end
|
83
83
|
|
84
|
+
#
|
85
|
+
# Approve a device grant.
|
86
|
+
#
|
87
|
+
# @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate.
|
88
|
+
# @param client_secret [string] (Optional) The client secret. This value will be required if client authentication is enabled.
|
89
|
+
# @param token [string] The access token used to identify the user.
|
90
|
+
# @param user_code [string] The end-user verification code.
|
91
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
92
|
+
def approve_device(client_id, client_secret, token, user_code)
|
93
|
+
body = {
|
94
|
+
"client_id" => client_id,
|
95
|
+
"client_secret" => client_secret,
|
96
|
+
"token" => token,
|
97
|
+
"user_code" => user_code
|
98
|
+
}
|
99
|
+
start.uri('/oauth2/device/approve')
|
100
|
+
.body_handler(FusionAuth::FormDataBodyHandler.new(body))
|
101
|
+
.post()
|
102
|
+
.go()
|
103
|
+
end
|
104
|
+
|
84
105
|
#
|
85
106
|
# Cancels the user action.
|
86
107
|
#
|
@@ -103,7 +124,7 @@ module FusionAuth
|
|
103
124
|
# the value in the request body.
|
104
125
|
#
|
105
126
|
# @param change_password_id [string] The change password Id used to find the user. This value is generated by FusionAuth once the change password workflow has been initiated.
|
106
|
-
# @param request [OpenStruct, Hash] The change password request that contains all
|
127
|
+
# @param request [OpenStruct, Hash] The change password request that contains all the information used to change the password.
|
107
128
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
108
129
|
def change_password(change_password_id, request)
|
109
130
|
startAnonymous.uri('/api/user/change-password')
|
@@ -118,7 +139,7 @@ module FusionAuth
|
|
118
139
|
# bypasses the email verification and allows a password to be changed directly without first calling the #forgotPassword
|
119
140
|
# method.
|
120
141
|
#
|
121
|
-
# @param request [OpenStruct, Hash] The change password request that contains all
|
142
|
+
# @param request [OpenStruct, Hash] The change password request that contains all the information used to change the password.
|
122
143
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
123
144
|
def change_password_by_identity(request)
|
124
145
|
start.uri('/api/user/change-password')
|
@@ -178,8 +199,10 @@ module FusionAuth
|
|
178
199
|
#
|
179
200
|
# Make a Client Credentials grant request to obtain an access token.
|
180
201
|
#
|
181
|
-
# @param client_id [string] The client identifier. The client Id is the Id of the FusionAuth Entity in which you are attempting to authenticate.
|
182
|
-
#
|
202
|
+
# @param client_id [string] (Optional) The client identifier. The client Id is the Id of the FusionAuth Entity in which you are attempting to authenticate.
|
203
|
+
# This parameter is optional when Basic Authorization is used to authenticate this request.
|
204
|
+
# @param client_secret [string] (Optional) The client secret used to authenticate this request.
|
205
|
+
# This parameter is optional when Basic Authorization is used to authenticate this request.
|
183
206
|
# @param scope [string] (Optional) This parameter is used to indicate which target entity you are requesting access. To request access to an entity, use the format target-entity:<target-entity-id>:<roles>. Roles are an optional comma separated list.
|
184
207
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
185
208
|
def client_credentials_grant(client_id, client_secret, scope)
|
@@ -251,7 +274,7 @@ module FusionAuth
|
|
251
274
|
# If an API key is locked to a tenant, it can only create API Keys for that same tenant.
|
252
275
|
#
|
253
276
|
# @param key_id [string] (Optional) The unique Id of the API key. If not provided a secure random Id will be generated.
|
254
|
-
# @param request [OpenStruct, Hash] The request object that contains all
|
277
|
+
# @param request [OpenStruct, Hash] The request object that contains all the information needed to create the APIKey.
|
255
278
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
256
279
|
def create_api_key(key_id, request)
|
257
280
|
start.uri('/api/api-key')
|
@@ -897,7 +920,7 @@ module FusionAuth
|
|
897
920
|
#
|
898
921
|
# Removes users as members of a group.
|
899
922
|
#
|
900
|
-
# @param request [OpenStruct, Hash] The member request that contains all
|
923
|
+
# @param request [OpenStruct, Hash] The member request that contains all the information used to remove members to the group.
|
901
924
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
902
925
|
def delete_group_members(request)
|
903
926
|
start.uri('/api/group/member')
|
@@ -1239,7 +1262,8 @@ module FusionAuth
|
|
1239
1262
|
# Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token.
|
1240
1263
|
#
|
1241
1264
|
# @param code [string] The authorization code returned on the /oauth2/authorize response.
|
1242
|
-
# @param client_id [string] The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate.
|
1265
|
+
# @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate.
|
1266
|
+
# This parameter is optional when Basic Authorization is used to authenticate this request.
|
1243
1267
|
# @param client_secret [string] (Optional) The client secret. This value will be required if client authentication is enabled.
|
1244
1268
|
# @param redirect_uri [string] The URI to redirect to upon a successful request.
|
1245
1269
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -1263,6 +1287,7 @@ module FusionAuth
|
|
1263
1287
|
#
|
1264
1288
|
# @param code [string] The authorization code returned on the /oauth2/authorize response.
|
1265
1289
|
# @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
|
1290
|
+
# This parameter is optional when Basic Authorization is used to authenticate this request.
|
1266
1291
|
# @param client_secret [string] (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
|
1267
1292
|
# @param redirect_uri [string] The URI to redirect to upon a successful request.
|
1268
1293
|
# @param code_verifier [string] The random string generated previously. Will be compared with the code_challenge sent previously, which allows the OAuth provider to authenticate your app.
|
@@ -1288,6 +1313,7 @@ module FusionAuth
|
|
1288
1313
|
#
|
1289
1314
|
# @param refresh_token [string] The refresh token that you would like to use to exchange for an access token.
|
1290
1315
|
# @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
|
1316
|
+
# This parameter is optional when Basic Authorization is used to authenticate this request.
|
1291
1317
|
# @param client_secret [string] (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
|
1292
1318
|
# @param scope [string] (Optional) This parameter is optional and if omitted, the same scope requested during the authorization request will be used. If provided the scopes must match those requested during the initial authorization request.
|
1293
1319
|
# @param user_code [string] (Optional) The end-user verification code. This code is required if using this endpoint to approve the Device Authorization.
|
@@ -1326,6 +1352,7 @@ module FusionAuth
|
|
1326
1352
|
# @param username [string] The login identifier of the user. The login identifier can be either the email or the username.
|
1327
1353
|
# @param password [string] The user’s password.
|
1328
1354
|
# @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
|
1355
|
+
# This parameter is optional when Basic Authorization is used to authenticate this request.
|
1329
1356
|
# @param client_secret [string] (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
|
1330
1357
|
# @param scope [string] (Optional) This parameter is optional and if omitted, the same scope requested during the authorization request will be used. If provided the scopes must match those requested during the initial authorization request.
|
1331
1358
|
# @param user_code [string] (Optional) The end-user verification code. This code is required if using this endpoint to approve the Device Authorization.
|
@@ -1478,7 +1505,7 @@ module FusionAuth
|
|
1478
1505
|
# body with specific validation errors. This will slow the request down but will allow you to identify the cause of
|
1479
1506
|
# the failure. See the validateDbConstraints request parameter.
|
1480
1507
|
#
|
1481
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
1508
|
+
# @param request [OpenStruct, Hash] The request that contains all the information about all the refresh tokens to import.
|
1482
1509
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1483
1510
|
def import_refresh_tokens(request)
|
1484
1511
|
start.uri('/api/user/refresh-token/import')
|
@@ -1497,7 +1524,7 @@ module FusionAuth
|
|
1497
1524
|
# body with specific validation errors. This will slow the request down but will allow you to identify the cause of the failure. See
|
1498
1525
|
# the validateDbConstraints request parameter.
|
1499
1526
|
#
|
1500
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
1527
|
+
# @param request [OpenStruct, Hash] The request that contains all the information about all the users to import.
|
1501
1528
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1502
1529
|
def import_users(request)
|
1503
1530
|
start.uri('/api/user/import')
|
@@ -1519,10 +1546,10 @@ module FusionAuth
|
|
1519
1546
|
end
|
1520
1547
|
|
1521
1548
|
#
|
1522
|
-
# Inspect an access token issued
|
1549
|
+
# Inspect an access token issued as the result of the User based grant such as the Authorization Code Grant, Implicit Grant, the User Credentials Grant or the Refresh Grant.
|
1523
1550
|
#
|
1524
1551
|
# @param client_id [string] The unique client identifier. The client Id is the Id of the FusionAuth Application for which this token was generated.
|
1525
|
-
# @param token [string] The access token returned by this OAuth provider as the result of a successful
|
1552
|
+
# @param token [string] The access token returned by this OAuth provider as the result of a successful client credentials grant.
|
1526
1553
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1527
1554
|
def introspect_access_token(client_id, token)
|
1528
1555
|
body = {
|
@@ -1535,6 +1562,21 @@ module FusionAuth
|
|
1535
1562
|
.go()
|
1536
1563
|
end
|
1537
1564
|
|
1565
|
+
#
|
1566
|
+
# Inspect an access token issued as the result of the Client Credentials Grant.
|
1567
|
+
#
|
1568
|
+
# @param token [string] The access token returned by this OAuth provider as the result of a successful client credentials grant.
|
1569
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1570
|
+
def introspect_client_credentials_access_token(token)
|
1571
|
+
body = {
|
1572
|
+
"token" => token
|
1573
|
+
}
|
1574
|
+
startAnonymous.uri('/oauth2/introspect')
|
1575
|
+
.body_handler(FusionAuth::FormDataBodyHandler.new(body))
|
1576
|
+
.post()
|
1577
|
+
.go()
|
1578
|
+
end
|
1579
|
+
|
1538
1580
|
#
|
1539
1581
|
# Issue a new access token (JWT) for the requested Application after ensuring the provided JWT is valid. A valid
|
1540
1582
|
# access token is properly signed and not expired.
|
@@ -1611,7 +1653,7 @@ module FusionAuth
|
|
1611
1653
|
# client and revoke the refresh token stored. This API does nothing if the request does not contain an access
|
1612
1654
|
# token or refresh token cookies.
|
1613
1655
|
#
|
1614
|
-
# @param global [Boolean] When this value is set to true all
|
1656
|
+
# @param global [Boolean] When this value is set to true all the refresh tokens issued to the owner of the
|
1615
1657
|
# provided token will be revoked.
|
1616
1658
|
# @param refresh_token [string] (Optional) The refresh_token as a request parameter instead of coming in via a cookie.
|
1617
1659
|
# If provided this takes precedence over the cookie.
|
@@ -1655,7 +1697,7 @@ module FusionAuth
|
|
1655
1697
|
# action.
|
1656
1698
|
#
|
1657
1699
|
# @param action_id [string] The Id of the action to modify. This is technically the user action log id.
|
1658
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
1700
|
+
# @param request [OpenStruct, Hash] The request that contains all the information about the modification.
|
1659
1701
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1660
1702
|
def modify_action(action_id, request)
|
1661
1703
|
start.uri('/api/user/action')
|
@@ -1668,7 +1710,7 @@ module FusionAuth
|
|
1668
1710
|
#
|
1669
1711
|
# Complete a login request using a passwordless code
|
1670
1712
|
#
|
1671
|
-
# @param request [OpenStruct, Hash] The passwordless login request that contains all
|
1713
|
+
# @param request [OpenStruct, Hash] The passwordless login request that contains all the information used to complete login.
|
1672
1714
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1673
1715
|
def passwordless_login(request)
|
1674
1716
|
startAnonymous.uri('/api/passwordless/login')
|
@@ -1681,7 +1723,7 @@ module FusionAuth
|
|
1681
1723
|
# Updates an authentication API key by given id
|
1682
1724
|
#
|
1683
1725
|
# @param key_id [string] The Id of the authentication key. If not provided a secure random api key will be generated.
|
1684
|
-
# @param request [OpenStruct, Hash] The request object that contains all
|
1726
|
+
# @param request [OpenStruct, Hash] The request object that contains all the information needed to create the APIKey.
|
1685
1727
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1686
1728
|
def patch_api_key(key_id, request)
|
1687
1729
|
start.uri('/api/api-key')
|
@@ -2211,7 +2253,7 @@ module FusionAuth
|
|
2211
2253
|
end
|
2212
2254
|
|
2213
2255
|
#
|
2214
|
-
# Retrieves the application for the given id or all
|
2256
|
+
# Retrieves the application for the given id or all the applications if the id is null.
|
2215
2257
|
#
|
2216
2258
|
# @param application_id [string] (Optional) The application id.
|
2217
2259
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -2306,7 +2348,7 @@ module FusionAuth
|
|
2306
2348
|
end
|
2307
2349
|
|
2308
2350
|
#
|
2309
|
-
# Retrieves the email template for the given Id. If you don't specify the id, this will return all
|
2351
|
+
# Retrieves the email template for the given Id. If you don't specify the id, this will return all the email templates.
|
2310
2352
|
#
|
2311
2353
|
# @param email_template_id [string] (Optional) The Id of the email template.
|
2312
2354
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -2507,7 +2549,7 @@ module FusionAuth
|
|
2507
2549
|
end
|
2508
2550
|
|
2509
2551
|
#
|
2510
|
-
# Retrieves the identity provider for the given id or all
|
2552
|
+
# Retrieves the identity provider for the given id or all the identity providers if the id is null.
|
2511
2553
|
#
|
2512
2554
|
# @param identity_provider_id [string] The identity provider Id.
|
2513
2555
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -2706,7 +2748,7 @@ module FusionAuth
|
|
2706
2748
|
end
|
2707
2749
|
|
2708
2750
|
#
|
2709
|
-
# Retrieves the message template for the given Id. If you don't specify the id, this will return all
|
2751
|
+
# Retrieves the message template for the given Id. If you don't specify the id, this will return all the message templates.
|
2710
2752
|
#
|
2711
2753
|
# @param message_template_id [string] (Optional) The Id of the message template.
|
2712
2754
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -2840,6 +2882,20 @@ module FusionAuth
|
|
2840
2882
|
.go()
|
2841
2883
|
end
|
2842
2884
|
|
2885
|
+
#
|
2886
|
+
# Retrieve a pending identity provider link. This is useful to validate a pending link and retrieve meta-data about the identity provider link.
|
2887
|
+
#
|
2888
|
+
# @param p_ending_link_id [string] The pending link Id.
|
2889
|
+
# @param user_id [string] The optional userId. When provided additional meta-data will be provided to identify how many links if any the user already has.
|
2890
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2891
|
+
def retrieve_pending_link(pending_link_id, user_id)
|
2892
|
+
start.uri('/api/identity-provider/link/pending')
|
2893
|
+
.url_segment(pending_link_id)
|
2894
|
+
.url_parameter('userId', user_id)
|
2895
|
+
.get()
|
2896
|
+
.go()
|
2897
|
+
end
|
2898
|
+
|
2843
2899
|
#
|
2844
2900
|
# Retrieves the FusionAuth Reactor metrics.
|
2845
2901
|
#
|
@@ -2995,7 +3051,7 @@ module FusionAuth
|
|
2995
3051
|
end
|
2996
3052
|
|
2997
3053
|
#
|
2998
|
-
# Retrieves the totals report. This contains all
|
3054
|
+
# Retrieves the totals report. This contains all the total counts for each application and the global registration
|
2999
3055
|
# count.
|
3000
3056
|
#
|
3001
3057
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -3049,7 +3105,7 @@ module FusionAuth
|
|
3049
3105
|
end
|
3050
3106
|
|
3051
3107
|
#
|
3052
|
-
# Retrieves the user action for the given Id. If you pass in null for the id, this will return all
|
3108
|
+
# Retrieves the user action for the given Id. If you pass in null for the id, this will return all the user
|
3053
3109
|
# actions.
|
3054
3110
|
#
|
3055
3111
|
# @param user_action_id [string] (Optional) The Id of the user action.
|
@@ -3062,7 +3118,7 @@ module FusionAuth
|
|
3062
3118
|
end
|
3063
3119
|
|
3064
3120
|
#
|
3065
|
-
# Retrieves the user action reason for the given Id. If you pass in null for the id, this will return all
|
3121
|
+
# Retrieves the user action reason for the given Id. If you pass in null for the id, this will return all the user
|
3066
3122
|
# action reasons.
|
3067
3123
|
#
|
3068
3124
|
# @param user_action_reason_id [string] (Optional) The Id of the user action reason.
|
@@ -3156,6 +3212,46 @@ module FusionAuth
|
|
3156
3212
|
.go()
|
3157
3213
|
end
|
3158
3214
|
|
3215
|
+
#
|
3216
|
+
# Retrieve a user_code that is part of an in-progress Device Authorization Grant.
|
3217
|
+
#
|
3218
|
+
# This API is useful if you want to build your own login workflow to complete a device grant.
|
3219
|
+
#
|
3220
|
+
# @param client_id [string] The client id.
|
3221
|
+
# @param client_secret [string] The client id.
|
3222
|
+
# @param user_code [string] The end-user verification code.
|
3223
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3224
|
+
def retrieve_user_code(client_id, client_secret, user_code)
|
3225
|
+
body = {
|
3226
|
+
"client_id" => client_id,
|
3227
|
+
"client_secret" => client_secret,
|
3228
|
+
"user_code" => user_code
|
3229
|
+
}
|
3230
|
+
startAnonymous.uri('/oauth2/device/user-code')
|
3231
|
+
.body_handler(FusionAuth::FormDataBodyHandler.new(body))
|
3232
|
+
.get()
|
3233
|
+
.go()
|
3234
|
+
end
|
3235
|
+
|
3236
|
+
#
|
3237
|
+
# Retrieve a user_code that is part of an in-progress Device Authorization Grant.
|
3238
|
+
#
|
3239
|
+
# This API is useful if you want to build your own login workflow to complete a device grant.
|
3240
|
+
#
|
3241
|
+
# This request will require an API key.
|
3242
|
+
#
|
3243
|
+
# @param user_code [string] The end-user verification code.
|
3244
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3245
|
+
def retrieve_user_code_using_api_key(user_code)
|
3246
|
+
body = {
|
3247
|
+
"user_code" => user_code
|
3248
|
+
}
|
3249
|
+
startAnonymous.uri('/oauth2/device/user-code')
|
3250
|
+
.body_handler(FusionAuth::FormDataBodyHandler.new(body))
|
3251
|
+
.get()
|
3252
|
+
.go()
|
3253
|
+
end
|
3254
|
+
|
3159
3255
|
#
|
3160
3256
|
# Retrieves all the comments for the user with the given Id.
|
3161
3257
|
#
|
@@ -3482,6 +3578,18 @@ module FusionAuth
|
|
3482
3578
|
.go()
|
3483
3579
|
end
|
3484
3580
|
|
3581
|
+
#
|
3582
|
+
# Searches applications with the specified criteria and pagination.
|
3583
|
+
#
|
3584
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3585
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3586
|
+
def search_applications(request)
|
3587
|
+
start.uri('/api/application/search')
|
3588
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3589
|
+
.post()
|
3590
|
+
.go()
|
3591
|
+
end
|
3592
|
+
|
3485
3593
|
#
|
3486
3594
|
# Searches the audit logs with the specified criteria and pagination.
|
3487
3595
|
#
|
@@ -3494,6 +3602,30 @@ module FusionAuth
|
|
3494
3602
|
.go()
|
3495
3603
|
end
|
3496
3604
|
|
3605
|
+
#
|
3606
|
+
# Searches consents with the specified criteria and pagination.
|
3607
|
+
#
|
3608
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3609
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3610
|
+
def search_consents(request)
|
3611
|
+
start.uri('/api/consent/search')
|
3612
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3613
|
+
.post()
|
3614
|
+
.go()
|
3615
|
+
end
|
3616
|
+
|
3617
|
+
#
|
3618
|
+
# Searches email templates with the specified criteria and pagination.
|
3619
|
+
#
|
3620
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3621
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3622
|
+
def search_email_templates(request)
|
3623
|
+
start.uri('/api/email/template/search')
|
3624
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3625
|
+
.post()
|
3626
|
+
.go()
|
3627
|
+
end
|
3628
|
+
|
3497
3629
|
#
|
3498
3630
|
# Searches entities with the specified criteria and pagination.
|
3499
3631
|
#
|
@@ -3590,6 +3722,42 @@ module FusionAuth
|
|
3590
3722
|
.go()
|
3591
3723
|
end
|
3592
3724
|
|
3725
|
+
#
|
3726
|
+
# Searches identity providers with the specified criteria and pagination.
|
3727
|
+
#
|
3728
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3729
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3730
|
+
def search_identity_providers(request)
|
3731
|
+
start.uri('/api/identity-provider/search')
|
3732
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3733
|
+
.post()
|
3734
|
+
.go()
|
3735
|
+
end
|
3736
|
+
|
3737
|
+
#
|
3738
|
+
# Searches keys with the specified criteria and pagination.
|
3739
|
+
#
|
3740
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3741
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3742
|
+
def search_keys(request)
|
3743
|
+
start.uri('/api/key/search')
|
3744
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3745
|
+
.post()
|
3746
|
+
.go()
|
3747
|
+
end
|
3748
|
+
|
3749
|
+
#
|
3750
|
+
# Searches lambdas with the specified criteria and pagination.
|
3751
|
+
#
|
3752
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3753
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3754
|
+
def search_lambdas(request)
|
3755
|
+
start.uri('/api/lambda/search')
|
3756
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3757
|
+
.post()
|
3758
|
+
.go()
|
3759
|
+
end
|
3760
|
+
|
3593
3761
|
#
|
3594
3762
|
# Searches the login records with the specified criteria and pagination.
|
3595
3763
|
#
|
@@ -3602,6 +3770,42 @@ module FusionAuth
|
|
3602
3770
|
.go()
|
3603
3771
|
end
|
3604
3772
|
|
3773
|
+
#
|
3774
|
+
# Searches tenants with the specified criteria and pagination.
|
3775
|
+
#
|
3776
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3777
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3778
|
+
def search_tenants(request)
|
3779
|
+
start.uri('/api/tenant/search')
|
3780
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3781
|
+
.post()
|
3782
|
+
.go()
|
3783
|
+
end
|
3784
|
+
|
3785
|
+
#
|
3786
|
+
# Searches themes with the specified criteria and pagination.
|
3787
|
+
#
|
3788
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3789
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3790
|
+
def search_themes(request)
|
3791
|
+
start.uri('/api/theme/search')
|
3792
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3793
|
+
.post()
|
3794
|
+
.go()
|
3795
|
+
end
|
3796
|
+
|
3797
|
+
#
|
3798
|
+
# Searches user comments with the specified criteria and pagination.
|
3799
|
+
#
|
3800
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3801
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3802
|
+
def search_user_comments(request)
|
3803
|
+
start.uri('/api/user/comment/search')
|
3804
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3805
|
+
.post()
|
3806
|
+
.go()
|
3807
|
+
end
|
3808
|
+
|
3605
3809
|
#
|
3606
3810
|
# Retrieves the users for the given ids. If any id is invalid, it is ignored.
|
3607
3811
|
#
|
@@ -3654,12 +3858,24 @@ module FusionAuth
|
|
3654
3858
|
.go()
|
3655
3859
|
end
|
3656
3860
|
|
3861
|
+
#
|
3862
|
+
# Searches webhooks with the specified criteria and pagination.
|
3863
|
+
#
|
3864
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
3865
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3866
|
+
def search_webhooks(request)
|
3867
|
+
start.uri('/api/webhook/search')
|
3868
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
3869
|
+
.post()
|
3870
|
+
.go()
|
3871
|
+
end
|
3872
|
+
|
3657
3873
|
#
|
3658
3874
|
# Send an email using an email template id. You can optionally provide <code>requestData</code> to access key value
|
3659
3875
|
# pairs in the email template.
|
3660
3876
|
#
|
3661
3877
|
# @param email_template_id [string] The id for the template.
|
3662
|
-
# @param request [OpenStruct, Hash] The send email request that contains all
|
3878
|
+
# @param request [OpenStruct, Hash] The send email request that contains all the information used to send the email.
|
3663
3879
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3664
3880
|
def send_email(email_template_id, request)
|
3665
3881
|
start.uri('/api/email/send')
|
@@ -3684,7 +3900,7 @@ module FusionAuth
|
|
3684
3900
|
#
|
3685
3901
|
# Send a passwordless authentication code in an email to complete login.
|
3686
3902
|
#
|
3687
|
-
# @param request [OpenStruct, Hash] The passwordless send request that contains all
|
3903
|
+
# @param request [OpenStruct, Hash] The passwordless send request that contains all the information used to send an email containing a code.
|
3688
3904
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3689
3905
|
def send_passwordless_code(request)
|
3690
3906
|
startAnonymous.uri('/api/passwordless/send')
|
@@ -3735,7 +3951,7 @@ module FusionAuth
|
|
3735
3951
|
# Send a Two Factor authentication code to allow the completion of Two Factor authentication.
|
3736
3952
|
#
|
3737
3953
|
# @param two_factor_id [string] The Id returned by the Login API necessary to complete Two Factor authentication.
|
3738
|
-
# @param request [OpenStruct, Hash] The Two Factor send request that contains all
|
3954
|
+
# @param request [OpenStruct, Hash] The Two Factor send request that contains all the information used to send the Two Factor code to the user.
|
3739
3955
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3740
3956
|
def send_two_factor_code_for_login_using_method(two_factor_id, request)
|
3741
3957
|
startAnonymous.uri('/api/two-factor/send')
|
@@ -3762,7 +3978,7 @@ module FusionAuth
|
|
3762
3978
|
# Start a passwordless login request by generating a passwordless code. This code can be sent to the User using the Send
|
3763
3979
|
# Passwordless Code API or using a mechanism outside of FusionAuth. The passwordless login is completed by using the Passwordless Login API with this code.
|
3764
3980
|
#
|
3765
|
-
# @param request [OpenStruct, Hash] The passwordless start request that contains all
|
3981
|
+
# @param request [OpenStruct, Hash] The passwordless start request that contains all the information used to begin the passwordless login request.
|
3766
3982
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3767
3983
|
def start_passwordless_login(request)
|
3768
3984
|
start.uri('/api/passwordless/start')
|
@@ -3777,9 +3993,9 @@ module FusionAuth
|
|
3777
3993
|
# to send the code out-of-band. The Two-Factor login is completed by making a request to the Two-Factor Login
|
3778
3994
|
# API (/api/two-factor/login). with the two-factor identifier and the one-time use code.
|
3779
3995
|
#
|
3780
|
-
# This API is intended to allow you to begin a Two-Factor login outside
|
3996
|
+
# This API is intended to allow you to begin a Two-Factor login outside a normal login that originated from the Login API (/api/login).
|
3781
3997
|
#
|
3782
|
-
# @param request [OpenStruct, Hash] The Two-Factor start request that contains all
|
3998
|
+
# @param request [OpenStruct, Hash] The Two-Factor start request that contains all the information used to begin the Two-Factor login request.
|
3783
3999
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3784
4000
|
def start_two_factor_login(request)
|
3785
4001
|
start.uri('/api/two-factor/start')
|
@@ -3842,7 +4058,7 @@ module FusionAuth
|
|
3842
4058
|
# Updates the application with the given Id.
|
3843
4059
|
#
|
3844
4060
|
# @param application_id [string] The Id of the application to update.
|
3845
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4061
|
+
# @param request [OpenStruct, Hash] The request that contains all the new application information.
|
3846
4062
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3847
4063
|
def update_application(application_id, request)
|
3848
4064
|
start.uri('/api/application')
|
@@ -3857,7 +4073,7 @@ module FusionAuth
|
|
3857
4073
|
#
|
3858
4074
|
# @param application_id [string] The Id of the application that the role belongs to.
|
3859
4075
|
# @param role_id [string] The Id of the role to update.
|
3860
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4076
|
+
# @param request [OpenStruct, Hash] The request that contains all the new role information.
|
3861
4077
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3862
4078
|
def update_application_role(application_id, role_id, request)
|
3863
4079
|
start.uri('/api/application')
|
@@ -3873,7 +4089,7 @@ module FusionAuth
|
|
3873
4089
|
# Updates the connector with the given Id.
|
3874
4090
|
#
|
3875
4091
|
# @param connector_id [string] The Id of the connector to update.
|
3876
|
-
# @param request [OpenStruct, Hash] The request object that contains all
|
4092
|
+
# @param request [OpenStruct, Hash] The request object that contains all the new connector information.
|
3877
4093
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3878
4094
|
def update_connector(connector_id, request)
|
3879
4095
|
start.uri('/api/connector')
|
@@ -3887,7 +4103,7 @@ module FusionAuth
|
|
3887
4103
|
# Updates the consent with the given Id.
|
3888
4104
|
#
|
3889
4105
|
# @param consent_id [string] The Id of the consent to update.
|
3890
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4106
|
+
# @param request [OpenStruct, Hash] The request that contains all the new consent information.
|
3891
4107
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3892
4108
|
def update_consent(consent_id, request)
|
3893
4109
|
start.uri('/api/consent')
|
@@ -3901,7 +4117,7 @@ module FusionAuth
|
|
3901
4117
|
# Updates the email template with the given Id.
|
3902
4118
|
#
|
3903
4119
|
# @param email_template_id [string] The Id of the email template to update.
|
3904
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4120
|
+
# @param request [OpenStruct, Hash] The request that contains all the new email template information.
|
3905
4121
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3906
4122
|
def update_email_template(email_template_id, request)
|
3907
4123
|
start.uri('/api/email/template')
|
@@ -3915,7 +4131,7 @@ module FusionAuth
|
|
3915
4131
|
# Updates the Entity with the given Id.
|
3916
4132
|
#
|
3917
4133
|
# @param entity_id [string] The Id of the Entity to update.
|
3918
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4134
|
+
# @param request [OpenStruct, Hash] The request that contains all the new Entity information.
|
3919
4135
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3920
4136
|
def update_entity(entity_id, request)
|
3921
4137
|
start.uri('/api/entity')
|
@@ -3929,7 +4145,7 @@ module FusionAuth
|
|
3929
4145
|
# Updates the Entity Type with the given Id.
|
3930
4146
|
#
|
3931
4147
|
# @param entity_type_id [string] The Id of the Entity Type to update.
|
3932
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4148
|
+
# @param request [OpenStruct, Hash] The request that contains all the new Entity Type information.
|
3933
4149
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3934
4150
|
def update_entity_type(entity_type_id, request)
|
3935
4151
|
start.uri('/api/entity/type')
|
@@ -3944,7 +4160,7 @@ module FusionAuth
|
|
3944
4160
|
#
|
3945
4161
|
# @param entity_type_id [string] The Id of the entityType that the permission belongs to.
|
3946
4162
|
# @param permission_id [string] The Id of the permission to update.
|
3947
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4163
|
+
# @param request [OpenStruct, Hash] The request that contains all the new permission information.
|
3948
4164
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3949
4165
|
def update_entity_type_permission(entity_type_id, permission_id, request)
|
3950
4166
|
start.uri('/api/entity/type')
|
@@ -3960,7 +4176,7 @@ module FusionAuth
|
|
3960
4176
|
# Updates the form with the given Id.
|
3961
4177
|
#
|
3962
4178
|
# @param form_id [string] The Id of the form to update.
|
3963
|
-
# @param request [OpenStruct, Hash] The request object that contains all
|
4179
|
+
# @param request [OpenStruct, Hash] The request object that contains all the new form information.
|
3964
4180
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3965
4181
|
def update_form(form_id, request)
|
3966
4182
|
start.uri('/api/form')
|
@@ -3974,7 +4190,7 @@ module FusionAuth
|
|
3974
4190
|
# Updates the form field with the given Id.
|
3975
4191
|
#
|
3976
4192
|
# @param field_id [string] The Id of the form field to update.
|
3977
|
-
# @param request [OpenStruct, Hash] The request object that contains all
|
4193
|
+
# @param request [OpenStruct, Hash] The request object that contains all the new form field information.
|
3978
4194
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3979
4195
|
def update_form_field(field_id, request)
|
3980
4196
|
start.uri('/api/form/field')
|
@@ -3988,7 +4204,7 @@ module FusionAuth
|
|
3988
4204
|
# Updates the group with the given Id.
|
3989
4205
|
#
|
3990
4206
|
# @param group_id [string] The Id of the group to update.
|
3991
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4207
|
+
# @param request [OpenStruct, Hash] The request that contains all the new group information.
|
3992
4208
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
3993
4209
|
def update_group(group_id, request)
|
3994
4210
|
start.uri('/api/group')
|
@@ -4014,7 +4230,7 @@ module FusionAuth
|
|
4014
4230
|
# Updates the IP Access Control List with the given Id.
|
4015
4231
|
#
|
4016
4232
|
# @param access_control_list_id [string] The Id of the IP Access Control List to update.
|
4017
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4233
|
+
# @param request [OpenStruct, Hash] The request that contains all the new IP Access Control List information.
|
4018
4234
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4019
4235
|
def update_ip_access_control_list(access_control_list_id, request)
|
4020
4236
|
start.uri('/api/ip-acl')
|
@@ -4041,7 +4257,7 @@ module FusionAuth
|
|
4041
4257
|
#
|
4042
4258
|
# Updates the available integrations.
|
4043
4259
|
#
|
4044
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4260
|
+
# @param request [OpenStruct, Hash] The request that contains all the new integration information.
|
4045
4261
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4046
4262
|
def update_integrations(request)
|
4047
4263
|
start.uri('/api/integration')
|
@@ -4054,7 +4270,7 @@ module FusionAuth
|
|
4054
4270
|
# Updates the key with the given Id.
|
4055
4271
|
#
|
4056
4272
|
# @param key_id [string] The Id of the key to update.
|
4057
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4273
|
+
# @param request [OpenStruct, Hash] The request that contains all the new key information.
|
4058
4274
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4059
4275
|
def update_key(key_id, request)
|
4060
4276
|
start.uri('/api/key')
|
@@ -4068,7 +4284,7 @@ module FusionAuth
|
|
4068
4284
|
# Updates the lambda with the given Id.
|
4069
4285
|
#
|
4070
4286
|
# @param lambda_id [string] The Id of the lambda to update.
|
4071
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4287
|
+
# @param request [OpenStruct, Hash] The request that contains all the new lambda information.
|
4072
4288
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4073
4289
|
def update_lambda(lambda_id, request)
|
4074
4290
|
start.uri('/api/lambda')
|
@@ -4082,7 +4298,7 @@ module FusionAuth
|
|
4082
4298
|
# Updates the message template with the given Id.
|
4083
4299
|
#
|
4084
4300
|
# @param message_template_id [string] The Id of the message template to update.
|
4085
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4301
|
+
# @param request [OpenStruct, Hash] The request that contains all the new message template information.
|
4086
4302
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4087
4303
|
def update_message_template(message_template_id, request)
|
4088
4304
|
start.uri('/api/message/template')
|
@@ -4096,7 +4312,7 @@ module FusionAuth
|
|
4096
4312
|
# Updates the messenger with the given Id.
|
4097
4313
|
#
|
4098
4314
|
# @param messenger_id [string] The Id of the messenger to update.
|
4099
|
-
# @param request [OpenStruct, Hash] The request object that contains all
|
4315
|
+
# @param request [OpenStruct, Hash] The request object that contains all the new messenger information.
|
4100
4316
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4101
4317
|
def update_messenger(messenger_id, request)
|
4102
4318
|
start.uri('/api/messenger')
|
@@ -4110,7 +4326,7 @@ module FusionAuth
|
|
4110
4326
|
# Updates the registration for the user with the given id and the application defined in the request.
|
4111
4327
|
#
|
4112
4328
|
# @param user_id [string] The Id of the user whose registration is going to be updated.
|
4113
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4329
|
+
# @param request [OpenStruct, Hash] The request that contains all the new registration information.
|
4114
4330
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4115
4331
|
def update_registration(user_id, request)
|
4116
4332
|
start.uri('/api/user/registration')
|
@@ -4123,7 +4339,7 @@ module FusionAuth
|
|
4123
4339
|
#
|
4124
4340
|
# Updates the system configuration.
|
4125
4341
|
#
|
4126
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4342
|
+
# @param request [OpenStruct, Hash] The request that contains all the new system configuration information.
|
4127
4343
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4128
4344
|
def update_system_configuration(request)
|
4129
4345
|
start.uri('/api/system-configuration')
|
@@ -4136,7 +4352,7 @@ module FusionAuth
|
|
4136
4352
|
# Updates the tenant with the given Id.
|
4137
4353
|
#
|
4138
4354
|
# @param tenant_id [string] The Id of the tenant to update.
|
4139
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4355
|
+
# @param request [OpenStruct, Hash] The request that contains all the new tenant information.
|
4140
4356
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4141
4357
|
def update_tenant(tenant_id, request)
|
4142
4358
|
start.uri('/api/tenant')
|
@@ -4150,7 +4366,7 @@ module FusionAuth
|
|
4150
4366
|
# Updates the theme with the given Id.
|
4151
4367
|
#
|
4152
4368
|
# @param theme_id [string] The Id of the theme to update.
|
4153
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4369
|
+
# @param request [OpenStruct, Hash] The request that contains all the new theme information.
|
4154
4370
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4155
4371
|
def update_theme(theme_id, request)
|
4156
4372
|
start.uri('/api/theme')
|
@@ -4164,7 +4380,7 @@ module FusionAuth
|
|
4164
4380
|
# Updates the user with the given Id.
|
4165
4381
|
#
|
4166
4382
|
# @param user_id [string] The Id of the user to update.
|
4167
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4383
|
+
# @param request [OpenStruct, Hash] The request that contains all the new user information.
|
4168
4384
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4169
4385
|
def update_user(user_id, request)
|
4170
4386
|
start.uri('/api/user')
|
@@ -4178,7 +4394,7 @@ module FusionAuth
|
|
4178
4394
|
# Updates the user action with the given Id.
|
4179
4395
|
#
|
4180
4396
|
# @param user_action_id [string] The Id of the user action to update.
|
4181
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4397
|
+
# @param request [OpenStruct, Hash] The request that contains all the new user action information.
|
4182
4398
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4183
4399
|
def update_user_action(user_action_id, request)
|
4184
4400
|
start.uri('/api/user-action')
|
@@ -4192,7 +4408,7 @@ module FusionAuth
|
|
4192
4408
|
# Updates the user action reason with the given Id.
|
4193
4409
|
#
|
4194
4410
|
# @param user_action_reason_id [string] The Id of the user action reason to update.
|
4195
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4411
|
+
# @param request [OpenStruct, Hash] The request that contains all the new user action reason information.
|
4196
4412
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4197
4413
|
def update_user_action_reason(user_action_reason_id, request)
|
4198
4414
|
start.uri('/api/user-action-reason')
|
@@ -4220,7 +4436,7 @@ module FusionAuth
|
|
4220
4436
|
# Updates the webhook with the given Id.
|
4221
4437
|
#
|
4222
4438
|
# @param webhook_id [string] The Id of the webhook to update.
|
4223
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4439
|
+
# @param request [OpenStruct, Hash] The request that contains all the new webhook information.
|
4224
4440
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4225
4441
|
def update_webhook(webhook_id, request)
|
4226
4442
|
start.uri('/api/webhook')
|
@@ -4286,7 +4502,7 @@ module FusionAuth
|
|
4286
4502
|
# 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
|
4287
4503
|
# by way of the X-FusionAuth-TenantId request header, or a tenant scoped API key.
|
4288
4504
|
#
|
4289
|
-
# @param request [OpenStruct, Hash] The request that contains all
|
4505
|
+
# @param request [OpenStruct, Hash] The request that contains all the claims for this JWT.
|
4290
4506
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
4291
4507
|
def vend_jwt(request)
|
4292
4508
|
start.uri('/api/jwt/vend')
|
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.46.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: 2023-
|
12
|
+
date: 2023-06-20 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.
|