fusionauth_client 1.69.0 → 1.70.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/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/build.savant +1 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +208 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37dc8a299b85dcdec0f6c1395d88abb69c20da243fdcca8b169e367f8f864480
|
|
4
|
+
data.tar.gz: a222216587c741f084ca332866636015fe87f8665c34d23bc818671249ac3e2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2a5cba468e28e0bee06d1f620f2dd1a1e95dcbd37501c381bd4d5ea26b3db85ed8b4bbf56736ebebca8b7d791c03d3b9b7f558822a1d870836b94fc202791b1
|
|
7
|
+
data.tar.gz: 454593bb0358b02dbb4c09e32a2f0fda1642b6b659073d792dd6d168fbeec9ed921e6ff17e55c769c81ab9c935487bc553845ebfd94d2620bf7f2c96336c6f40
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.4.
|
|
1
|
+
3.4.12
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
fusionauth_client (1.
|
|
4
|
+
fusionauth_client (1.70.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -63,7 +63,7 @@ DEPENDENCIES
|
|
|
63
63
|
rdoc-markdown (~> 0.4.2)
|
|
64
64
|
|
|
65
65
|
RUBY VERSION
|
|
66
|
-
ruby 3.4.
|
|
66
|
+
ruby 3.4.12p148
|
|
67
67
|
|
|
68
68
|
BUNDLED WITH
|
|
69
69
|
2.6.2
|
data/build.savant
CHANGED
|
@@ -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.70.0", licenses: ["ApacheV2_0"]) {
|
|
19
19
|
workflow {
|
|
20
20
|
fetch {
|
|
21
21
|
cache()
|
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.70.0'
|
|
23
23
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
|
24
24
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
|
25
25
|
|
|
@@ -507,6 +507,38 @@ module FusionAuth
|
|
|
507
507
|
.go
|
|
508
508
|
end
|
|
509
509
|
|
|
510
|
+
#
|
|
511
|
+
# Creates a CIMD domain. You can optionally provide an Id for the CIMD domain, if not provided one will be generated.
|
|
512
|
+
#
|
|
513
|
+
# @param domain_id [string] (Optional) The Id to use for the CIMD domain. If not provided a secure random UUID will be generated.
|
|
514
|
+
# @param request [OpenStruct, Hash] The request object that contains all the information used to create the CIMD domain.
|
|
515
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
516
|
+
def create_cimd_domain(domain_id, request)
|
|
517
|
+
start.uri('/api/cimd/domain')
|
|
518
|
+
.url_segment(domain_id)
|
|
519
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
520
|
+
.post
|
|
521
|
+
.go
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
#
|
|
525
|
+
# Creates a new custom OAuth scope for a CIMD Domain. You must specify the Id of the CIMD domain you are creating the scope for.
|
|
526
|
+
# You can optionally specify an Id for the OAuth scope on the URL, if not provided one will be generated.
|
|
527
|
+
#
|
|
528
|
+
# @param domain_id [string] The Id of the CIMD domain to create the OAuth scope on.
|
|
529
|
+
# @param scope_id [string] (Optional) The Id of the OAuth scope. If not provided a secure random UUID will be generated.
|
|
530
|
+
# @param request [OpenStruct, Hash] The request object that contains all the information used to create the OAuth scope.
|
|
531
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
532
|
+
def create_cimd_domain_o_auth_scope(domain_id, scope_id, request)
|
|
533
|
+
start.uri('/api/cimd/domain')
|
|
534
|
+
.url_segment(domain_id)
|
|
535
|
+
.url_segment("scope")
|
|
536
|
+
.url_segment(scope_id)
|
|
537
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
538
|
+
.post
|
|
539
|
+
.go
|
|
540
|
+
end
|
|
541
|
+
|
|
510
542
|
#
|
|
511
543
|
# Creates a connector. You can optionally specify an Id for the connector, if not provided one will be generated.
|
|
512
544
|
#
|
|
@@ -740,7 +772,7 @@ module FusionAuth
|
|
|
740
772
|
#
|
|
741
773
|
# @param application_id [string] The Id of the application to create the OAuth scope on.
|
|
742
774
|
# @param scope_id [string] (Optional) The Id of the OAuth scope. If not provided a secure random UUID will be generated.
|
|
743
|
-
# @param request [OpenStruct, Hash] The request object that contains all the information used to create the OAuth
|
|
775
|
+
# @param request [OpenStruct, Hash] The request object that contains all the information used to create the OAuth scope.
|
|
744
776
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
745
777
|
def create_o_auth_scope(application_id, scope_id, request)
|
|
746
778
|
start.uri('/api/application')
|
|
@@ -997,6 +1029,46 @@ module FusionAuth
|
|
|
997
1029
|
.go
|
|
998
1030
|
end
|
|
999
1031
|
|
|
1032
|
+
#
|
|
1033
|
+
# Deletes the CIMD client registration for the given Id, along with its refresh tokens.
|
|
1034
|
+
#
|
|
1035
|
+
# @param registration_id [string] The Id of the CIMD client registration to delete.
|
|
1036
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
1037
|
+
def delete_cimd_client_registration(registration_id)
|
|
1038
|
+
start.uri('/api/cimd/registration')
|
|
1039
|
+
.url_segment(registration_id)
|
|
1040
|
+
.delete
|
|
1041
|
+
.go
|
|
1042
|
+
end
|
|
1043
|
+
|
|
1044
|
+
#
|
|
1045
|
+
# Deletes the CIMD domain for the given Id.
|
|
1046
|
+
#
|
|
1047
|
+
# @param domain_id [string] The Id of the CIMD domain to delete.
|
|
1048
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
1049
|
+
def delete_cimd_domain(domain_id)
|
|
1050
|
+
start.uri('/api/cimd/domain')
|
|
1051
|
+
.url_segment(domain_id)
|
|
1052
|
+
.delete
|
|
1053
|
+
.go
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
#
|
|
1057
|
+
# Hard deletes a custom OAuth scope for a CIMD Domain.
|
|
1058
|
+
# OAuth workflows that are still requesting the deleted OAuth scope may fail depending on the CIMD domain's unknown scope policy.
|
|
1059
|
+
#
|
|
1060
|
+
# @param domain_id [string] The Id of the CIMD domain that the OAuth scope belongs to.
|
|
1061
|
+
# @param scope_id [string] The Id of the OAuth scope to delete.
|
|
1062
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
1063
|
+
def delete_cimd_domain_o_auth_scope(domain_id, scope_id)
|
|
1064
|
+
start.uri('/api/cimd/domain')
|
|
1065
|
+
.url_segment(domain_id)
|
|
1066
|
+
.url_segment("scope")
|
|
1067
|
+
.url_segment(scope_id)
|
|
1068
|
+
.delete
|
|
1069
|
+
.go
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1000
1072
|
#
|
|
1001
1073
|
# Deletes the connector for the given Id.
|
|
1002
1074
|
#
|
|
@@ -2188,6 +2260,37 @@ module FusionAuth
|
|
|
2188
2260
|
.go
|
|
2189
2261
|
end
|
|
2190
2262
|
|
|
2263
|
+
#
|
|
2264
|
+
# Updates, via PATCH, the CIMD domain with the given Id.
|
|
2265
|
+
#
|
|
2266
|
+
# @param domain_id [string] The Id of the CIMD domain to update.
|
|
2267
|
+
# @param request [OpenStruct, Hash] The request that contains just the new CIMD domain information.
|
|
2268
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
2269
|
+
def patch_cimd_domain(domain_id, request)
|
|
2270
|
+
start.uri('/api/cimd/domain')
|
|
2271
|
+
.url_segment(domain_id)
|
|
2272
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
2273
|
+
.patch
|
|
2274
|
+
.go
|
|
2275
|
+
end
|
|
2276
|
+
|
|
2277
|
+
#
|
|
2278
|
+
# Updates, via PATCH, the custom OAuth scope with the given Id for the CIMD domain.
|
|
2279
|
+
#
|
|
2280
|
+
# @param domain_id [string] The Id of the CIMD domain that the OAuth scope belongs to.
|
|
2281
|
+
# @param scope_id [string] The Id of the OAuth scope to update.
|
|
2282
|
+
# @param request [OpenStruct, Hash] The request that contains just the new OAuth scope information.
|
|
2283
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
2284
|
+
def patch_cimd_domain_o_auth_scope(domain_id, scope_id, request)
|
|
2285
|
+
start.uri('/api/cimd/domain')
|
|
2286
|
+
.url_segment(domain_id)
|
|
2287
|
+
.url_segment("scope")
|
|
2288
|
+
.url_segment(scope_id)
|
|
2289
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
2290
|
+
.patch
|
|
2291
|
+
.go
|
|
2292
|
+
end
|
|
2293
|
+
|
|
2191
2294
|
#
|
|
2192
2295
|
# Updates, via PATCH, the connector with the given Id.
|
|
2193
2296
|
#
|
|
@@ -2840,6 +2943,55 @@ module FusionAuth
|
|
|
2840
2943
|
.go
|
|
2841
2944
|
end
|
|
2842
2945
|
|
|
2946
|
+
#
|
|
2947
|
+
# Retrieves the CIMD client registration for the given Id.
|
|
2948
|
+
#
|
|
2949
|
+
# @param registration_id [string] The Id of the CIMD client registration.
|
|
2950
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
2951
|
+
def retrieve_cimd_client_registration(registration_id)
|
|
2952
|
+
start.uri('/api/cimd/registration')
|
|
2953
|
+
.url_segment(registration_id)
|
|
2954
|
+
.get
|
|
2955
|
+
.go
|
|
2956
|
+
end
|
|
2957
|
+
|
|
2958
|
+
#
|
|
2959
|
+
# Retrieves the CIMD domain for the given Id.
|
|
2960
|
+
#
|
|
2961
|
+
# @param domain_id [string] The Id of the CIMD domain.
|
|
2962
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
2963
|
+
def retrieve_cimd_domain(domain_id)
|
|
2964
|
+
start.uri('/api/cimd/domain')
|
|
2965
|
+
.url_segment(domain_id)
|
|
2966
|
+
.get
|
|
2967
|
+
.go
|
|
2968
|
+
end
|
|
2969
|
+
|
|
2970
|
+
#
|
|
2971
|
+
# Retrieves a custom OAuth scope for a CIMD Domain.
|
|
2972
|
+
#
|
|
2973
|
+
# @param domain_id [string] The Id of the CIMD domain that the OAuth scope belongs to.
|
|
2974
|
+
# @param scope_id [string] The Id of the OAuth scope to retrieve.
|
|
2975
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
2976
|
+
def retrieve_cimd_domain_o_auth_scope(domain_id, scope_id)
|
|
2977
|
+
start.uri('/api/cimd/domain')
|
|
2978
|
+
.url_segment(domain_id)
|
|
2979
|
+
.url_segment("scope")
|
|
2980
|
+
.url_segment(scope_id)
|
|
2981
|
+
.get
|
|
2982
|
+
.go
|
|
2983
|
+
end
|
|
2984
|
+
|
|
2985
|
+
#
|
|
2986
|
+
# Retrieves all the CIMD domains for the tenant in context.
|
|
2987
|
+
#
|
|
2988
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
2989
|
+
def retrieve_cimd_domains
|
|
2990
|
+
start.uri('/api/cimd/domain')
|
|
2991
|
+
.get
|
|
2992
|
+
.go
|
|
2993
|
+
end
|
|
2994
|
+
|
|
2843
2995
|
#
|
|
2844
2996
|
# Retrieves the connector with the given Id.
|
|
2845
2997
|
#
|
|
@@ -4298,6 +4450,30 @@ module FusionAuth
|
|
|
4298
4450
|
.go
|
|
4299
4451
|
end
|
|
4300
4452
|
|
|
4453
|
+
#
|
|
4454
|
+
# Searches the CIMD client registrations with the specified criteria and pagination.
|
|
4455
|
+
#
|
|
4456
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
|
4457
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4458
|
+
def search_cimd_client_registrations(request)
|
|
4459
|
+
start.uri('/api/cimd/registration/search')
|
|
4460
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
4461
|
+
.post
|
|
4462
|
+
.go
|
|
4463
|
+
end
|
|
4464
|
+
|
|
4465
|
+
#
|
|
4466
|
+
# Searches the CIMD domains with the specified criteria and pagination.
|
|
4467
|
+
#
|
|
4468
|
+
# @param request [OpenStruct, Hash] The search criteria and pagination information.
|
|
4469
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
4470
|
+
def search_cimd_domains(request)
|
|
4471
|
+
start.uri('/api/cimd/domain/search')
|
|
4472
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
4473
|
+
.post
|
|
4474
|
+
.go
|
|
4475
|
+
end
|
|
4476
|
+
|
|
4301
4477
|
#
|
|
4302
4478
|
# Searches consents with the specified criteria and pagination.
|
|
4303
4479
|
#
|
|
@@ -4974,6 +5150,37 @@ module FusionAuth
|
|
|
4974
5150
|
.go
|
|
4975
5151
|
end
|
|
4976
5152
|
|
|
5153
|
+
#
|
|
5154
|
+
# Updates the CIMD domain with the given Id.
|
|
5155
|
+
#
|
|
5156
|
+
# @param domain_id [string] The Id of the CIMD domain to update.
|
|
5157
|
+
# @param request [OpenStruct, Hash] The request that contains all the new CIMD domain information.
|
|
5158
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
5159
|
+
def update_cimd_domain(domain_id, request)
|
|
5160
|
+
start.uri('/api/cimd/domain')
|
|
5161
|
+
.url_segment(domain_id)
|
|
5162
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
5163
|
+
.put
|
|
5164
|
+
.go
|
|
5165
|
+
end
|
|
5166
|
+
|
|
5167
|
+
#
|
|
5168
|
+
# Updates the OAuth scope with the given Id for the CIMD domain.
|
|
5169
|
+
#
|
|
5170
|
+
# @param domain_id [string] The Id of the CIMD domain that the OAuth scope belongs to.
|
|
5171
|
+
# @param scope_id [string] The Id of the OAuth scope to update.
|
|
5172
|
+
# @param request [OpenStruct, Hash] The request that contains all the new OAuth scope information.
|
|
5173
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
|
5174
|
+
def update_cimd_domain_o_auth_scope(domain_id, scope_id, request)
|
|
5175
|
+
start.uri('/api/cimd/domain')
|
|
5176
|
+
.url_segment(domain_id)
|
|
5177
|
+
.url_segment("scope")
|
|
5178
|
+
.url_segment(scope_id)
|
|
5179
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
|
5180
|
+
.put
|
|
5181
|
+
.go
|
|
5182
|
+
end
|
|
5183
|
+
|
|
4977
5184
|
#
|
|
4978
5185
|
# Updates the connector with the given Id.
|
|
4979
5186
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fusionauth_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.70.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Pontarelli
|
|
8
8
|
- Daniel DeGroff
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: This library contains the Ruby client library that helps you connect
|
|
14
14
|
your application to FusionAuth.
|
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
111
|
version: '0'
|
|
112
112
|
requirements: []
|
|
113
|
-
rubygems_version: 3.6.
|
|
113
|
+
rubygems_version: 3.6.9
|
|
114
114
|
specification_version: 4
|
|
115
115
|
summary: The Ruby client library for FusionAuth
|
|
116
116
|
test_files: []
|