fusionauth_client 1.7.4 → 1.8.0.pre.RC.1
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_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +121 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27967872feca0c922a9b412bdf91253ac0ecfeab88bb0a8d3420fb26abd834ad
|
4
|
+
data.tar.gz: 51c7fd5a7f78f5d664e2d5466c32b66574226e14252e9b70a1be718d042be852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eb200301e1bc5f1303a5cc01973b6bbbd0660ea6c7730956ea143fe2c79c418b8dd4be4db13a53149d68e41cf116b77369b089247fcea586911bdd1f26c362e
|
7
|
+
data.tar.gz: b86d9d43c8391881b296fdd33bd5e3cb5e99d38ae5aca5cba371d8a772bfceeaa7e4155a4aa8a1ea8c3a4d4f61b9347eb51b6d82be90a3389e0d55e50ac6aad7
|
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.8.0-RC.1", 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.8.0-RC.1'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -296,6 +296,21 @@ module FusionAuth
|
|
296
296
|
.go()
|
297
297
|
end
|
298
298
|
|
299
|
+
#
|
300
|
+
# Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated.
|
301
|
+
#
|
302
|
+
# @param theme_id [string] (Optional) The Id for the theme. If not provided a secure random UUID will be generated.
|
303
|
+
# @param request [OpenStruct, Hash] The request object that contains all of the information used to create the theme.
|
304
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
305
|
+
#
|
306
|
+
def create_theme(theme_id, request)
|
307
|
+
start.uri('/api/theme')
|
308
|
+
.url_segment(theme_id)
|
309
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
310
|
+
.post()
|
311
|
+
.go()
|
312
|
+
end
|
313
|
+
|
299
314
|
#
|
300
315
|
# Creates a user. You can optionally specify an Id for the user, if not provided one will be generated.
|
301
316
|
#
|
@@ -578,6 +593,19 @@ module FusionAuth
|
|
578
593
|
.go()
|
579
594
|
end
|
580
595
|
|
596
|
+
#
|
597
|
+
# Deletes the theme for the given Id.
|
598
|
+
#
|
599
|
+
# @param theme_id [string] The Id of the theme to delete.
|
600
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
601
|
+
#
|
602
|
+
def delete_theme(theme_id)
|
603
|
+
start.uri('/api/theme')
|
604
|
+
.url_segment(theme_id)
|
605
|
+
.delete()
|
606
|
+
.go()
|
607
|
+
end
|
608
|
+
|
581
609
|
#
|
582
610
|
# Deletes the user for the given Id. This permanently deletes all information, metrics, reports and data associated
|
583
611
|
# with the user.
|
@@ -713,7 +741,7 @@ module FusionAuth
|
|
713
741
|
def generate_email_verification_id(email)
|
714
742
|
start.uri('/api/user/verify-email')
|
715
743
|
.url_parameter('email', email)
|
716
|
-
.url_parameter('
|
744
|
+
.url_parameter('sendVerifyEmail', false)
|
717
745
|
.put()
|
718
746
|
.go()
|
719
747
|
end
|
@@ -843,7 +871,9 @@ module FusionAuth
|
|
843
871
|
end
|
844
872
|
|
845
873
|
#
|
846
|
-
#
|
874
|
+
# Authenticates a user to FusionAuth.
|
875
|
+
#
|
876
|
+
# This API optionally requires an API key. See <code>Application.loginConfiguration.requireAuthentication</code>.
|
847
877
|
#
|
848
878
|
# @param request [OpenStruct, Hash] The login request that contains the user credentials used to log them in.
|
849
879
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -993,6 +1023,20 @@ module FusionAuth
|
|
993
1023
|
.go()
|
994
1024
|
end
|
995
1025
|
|
1026
|
+
#
|
1027
|
+
# Request a refresh of the User search index. This API is not generally necessary and the search index will become consistent in a
|
1028
|
+
# reasonable amount of time. There may be scenarios where you may wish to manually request an index refresh. One example may be
|
1029
|
+
# if you are using the Search API or Delete Tenant API immediately following a User Create etc, you may wish to request a refresh to
|
1030
|
+
# ensure the index immediately current before making a query request to the search index.
|
1031
|
+
#
|
1032
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1033
|
+
#
|
1034
|
+
def refresh_user_search_index()
|
1035
|
+
start.uri('/api/user/search')
|
1036
|
+
.put()
|
1037
|
+
.go()
|
1038
|
+
end
|
1039
|
+
|
996
1040
|
#
|
997
1041
|
# Registers a user for an application. If you provide the User and the UserRegistration object on this request, it
|
998
1042
|
# will create the user as well as register them for the application. This is called a Full Registration. However, if
|
@@ -1367,16 +1411,27 @@ module FusionAuth
|
|
1367
1411
|
end
|
1368
1412
|
|
1369
1413
|
#
|
1370
|
-
# Retrieves the Public Key configured for verifying JSON Web Tokens (JWT) by the key Id.
|
1371
|
-
# single public key will be returned if one is found by that id. If the optional parameter key Id is not provided all
|
1372
|
-
# public keys will be returned.
|
1414
|
+
# Retrieves the Public Key configured for verifying JSON Web Tokens (JWT) by the key Id (kid).
|
1373
1415
|
#
|
1374
|
-
# @param key_id [string]
|
1416
|
+
# @param key_id [string] The Id of the public key (kid).
|
1375
1417
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1376
1418
|
#
|
1377
1419
|
def retrieve_jwt_public_key(key_id)
|
1378
1420
|
start.uri('/api/jwt/public-key')
|
1379
|
-
.
|
1421
|
+
.url_parameter('kid', key_id)
|
1422
|
+
.get()
|
1423
|
+
.go()
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
#
|
1427
|
+
# Retrieves the Public Key configured for verifying the JSON Web Tokens (JWT) issued by the Login API by the Application Id.
|
1428
|
+
#
|
1429
|
+
# @param application_id [string] The Id of the Application for which this key is used.
|
1430
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1431
|
+
#
|
1432
|
+
def retrieve_jwt_public_key_by_application_id(application_id)
|
1433
|
+
start.uri('/api/jwt/public-key')
|
1434
|
+
.url_parameter('applicationId', application_id)
|
1380
1435
|
.get()
|
1381
1436
|
.go()
|
1382
1437
|
end
|
@@ -1504,12 +1559,30 @@ module FusionAuth
|
|
1504
1559
|
end
|
1505
1560
|
|
1506
1561
|
#
|
1507
|
-
# Retrieves the password validation rules.
|
1562
|
+
# Retrieves the password validation rules for a specific tenant. This method requires a tenantId to be provided
|
1563
|
+
# through the use of a Tenant scoped API key or an HTTP header X-FusionAuth-TenantId to specify the Tenant Id.
|
1564
|
+
#
|
1565
|
+
# This API does not require an API key.
|
1508
1566
|
#
|
1509
1567
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1510
1568
|
#
|
1511
1569
|
def retrieve_password_validation_rules()
|
1512
|
-
start.uri('/api/
|
1570
|
+
start.uri('/api/tenant/password-validation-rules')
|
1571
|
+
.get()
|
1572
|
+
.go()
|
1573
|
+
end
|
1574
|
+
|
1575
|
+
#
|
1576
|
+
# Retrieves the password validation rules for a specific tenant.
|
1577
|
+
#
|
1578
|
+
# This API does not require an API key.
|
1579
|
+
#
|
1580
|
+
# @param tenant_id [string] The Id of the tenant.
|
1581
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1582
|
+
#
|
1583
|
+
def retrieve_password_validation_rules_with_tenant_id(tenant_id)
|
1584
|
+
start.uri('/api/tenant/password-validation-rules')
|
1585
|
+
.url_segment(tenant_id)
|
1513
1586
|
.get()
|
1514
1587
|
.go()
|
1515
1588
|
end
|
@@ -1623,6 +1696,30 @@ module FusionAuth
|
|
1623
1696
|
.go()
|
1624
1697
|
end
|
1625
1698
|
|
1699
|
+
#
|
1700
|
+
# Retrieves the theme for the given Id.
|
1701
|
+
#
|
1702
|
+
# @param theme_id [string] The Id of the theme.
|
1703
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1704
|
+
#
|
1705
|
+
def retrieve_theme(theme_id)
|
1706
|
+
start.uri('/api/theme')
|
1707
|
+
.url_segment(theme_id)
|
1708
|
+
.get()
|
1709
|
+
.go()
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
#
|
1713
|
+
# Retrieves all of the themes.
|
1714
|
+
#
|
1715
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1716
|
+
#
|
1717
|
+
def retrieve_themes()
|
1718
|
+
start.uri('/api/theme')
|
1719
|
+
.get()
|
1720
|
+
.go()
|
1721
|
+
end
|
1722
|
+
|
1626
1723
|
#
|
1627
1724
|
# Retrieves the totals report. This contains all of the total counts for each application and the global registration
|
1628
1725
|
# count.
|
@@ -2255,6 +2352,21 @@ module FusionAuth
|
|
2255
2352
|
.go()
|
2256
2353
|
end
|
2257
2354
|
|
2355
|
+
#
|
2356
|
+
# Updates the theme with the given Id.
|
2357
|
+
#
|
2358
|
+
# @param theme_id [string] The Id of the theme to update.
|
2359
|
+
# @param request [OpenStruct, Hash] The request that contains all of the new theme information.
|
2360
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2361
|
+
#
|
2362
|
+
def update_theme(theme_id, request)
|
2363
|
+
start.uri('/api/theme')
|
2364
|
+
.url_segment(theme_id)
|
2365
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
2366
|
+
.put()
|
2367
|
+
.go()
|
2368
|
+
end
|
2369
|
+
|
2258
2370
|
#
|
2259
2371
|
# Updates the user with the given Id.
|
2260
2372
|
#
|
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.8.0.pre.RC.1
|
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-08
|
12
|
+
date: 2019-09-08 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.
|
@@ -47,9 +47,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
47
|
version: '0'
|
48
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- - "
|
50
|
+
- - ">"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: 1.3.1
|
53
53
|
requirements: []
|
54
54
|
rubygems_version: 3.0.2
|
55
55
|
signing_key:
|