fusionauth_client 1.32.1 → 1.33.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1f6d531e4e5184bbd5294048ff77fb7e2733a2caa8ababc38b4b986d03d6344
4
- data.tar.gz: 503df19d88f172e051b897b36a90b1620df27b57a6c88d7697704f0e4eddbd1c
3
+ metadata.gz: a42263a48ce8ac51ca385fac345f7aa4bff71a60477bd8e6e906b634cd769a1e
4
+ data.tar.gz: 1a14f082b4b239ede938a18d88b39569632eb6970906d569508855f6e4870e8f
5
5
  SHA512:
6
- metadata.gz: 20ca95b8a9327581ca7efea9a9edddfd9792d7c7c23e4fa4721346c7e4f4c15502e8c66cebe80a386983210632317a639b0a66233283f61f6005b4dab2518562
7
- data.tar.gz: 36e430cba9606e9bdc57d6138457ceeeed18ae69b65590338e9d5ccbc56969c31e5630c5a03600cc0cbb958cec54c2116e3794d4d39b0d37717d8226207183a7
6
+ metadata.gz: 68be0ecab2bef6a70d321b7f6f60b1fb3cb0995b19fb3a9e831d6ba9307fae5984d10e6a3fa649f348743c2beac8f0e5e90f61b3c5436ec12b3421c713eb1c48
7
+ data.tar.gz: d70b1733b3250b9df9273b93ceb8446e24d2b547f67243c562695416114b20e06520e08ea4216b7f1c5904fa9352a6126e9136386727865af803d8efa01b1b7b
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.32.1)
4
+ fusionauth_client (1.33.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.32.1", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.33.0", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  fetch {
22
22
  cache()
@@ -40,7 +40,7 @@ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.32.1
40
40
  }
41
41
 
42
42
  // Plugins
43
- file = loadPlugin(id: "org.savantbuild.plugin:file:${savantVersion}")
43
+ file = loadPlugin(id: "org.savantbuild.plugin:file:1.0.2")
44
44
  release = loadPlugin(id: "org.savantbuild.plugin:release-git:${savantVersion}")
45
45
 
46
46
  target(name: "clean", description: "Cleans build directory") {
@@ -6,11 +6,10 @@
6
6
  <sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
7
7
  <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
8
8
  </content>
9
- <orderEntry type="jdk" jdkName="rbenv: 2.5.1" jdkType="RUBY_SDK" />
9
+ <orderEntry type="jdk" jdkName="rbenv: 2.5.9" jdkType="RUBY_SDK" />
10
10
  <orderEntry type="sourceFolder" forTests="false" />
11
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.5, rbenv: 2.5.1) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.5.1) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 2.5.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.5, rbenv: 2.5.9) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 2.5.9) [gem]" level="application" />
14
13
  </component>
15
14
  <component name="RakeTasksCache">
16
15
  <option name="myRootTask">
@@ -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.32.1'
7
+ spec.version = '1.33.0'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -98,6 +98,9 @@ module FusionAuth
98
98
  #
99
99
  # Changes a user's password using the change password Id. This usually occurs after an email has been sent to the user
100
100
  # and they clicked on a link to reset their password.
101
+ #
102
+ # As of version 1.32.2, prefer sending the changePasswordId in the request body. To do this, omit the first parameter, and set
103
+ # the value in the request body.
101
104
  #
102
105
  # @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.
103
106
  # @param request [OpenStruct, Hash] The change password request that contains all of the information used to change the password.
@@ -124,6 +127,54 @@ module FusionAuth
124
127
  .go()
125
128
  end
126
129
 
130
+ #
131
+ # Check to see if the user must obtain a Trust Token Id in order to complete a change password request.
132
+ # When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
133
+ # your password, you must obtain a Truest Token by completing a Two-Factor Step-Up authentication.
134
+ #
135
+ # An HTTP status code of 412 indicates that a Trust Token is required to make a POST request to this API.
136
+ #
137
+ # @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.
138
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
139
+ def check_change_password_using_id(change_password_id)
140
+ startAnonymous.uri('/api/user/change-password')
141
+ .url_segment(change_password_id)
142
+ .get()
143
+ .go()
144
+ end
145
+
146
+ #
147
+ # Check to see if the user must obtain a Trust Token Id in order to complete a change password request.
148
+ # When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
149
+ # your password, you must obtain a Truest Token by completing a Two-Factor Step-Up authentication.
150
+ #
151
+ # An HTTP status code of 412 indicates that a Trust Token is required to make a POST request to this API.
152
+ #
153
+ # @param encoded_jwt [string] The encoded JWT (access token).
154
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
155
+ def check_change_password_using_jwt(encoded_jwt)
156
+ startAnonymous.uri('/api/user/change-password')
157
+ .authorization('Bearer ' + encoded_jwt)
158
+ .get()
159
+ .go()
160
+ end
161
+
162
+ #
163
+ # Check to see if the user must obtain a Trust Request Id in order to complete a change password request.
164
+ # When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
165
+ # your password, you must obtain a Truest Request Id by completing a Two-Factor Step-Up authentication.
166
+ #
167
+ # An HTTP status code of 412 indicates that a Trust Token is required to make a POST request to this API.
168
+ #
169
+ # @param login_id [string] The loginId of the User that you intend to change the password for.
170
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
171
+ def check_change_password_using_login_id(login_id)
172
+ start.uri('/api/user/change-password')
173
+ .url_parameter('username', login_id)
174
+ .get()
175
+ .go()
176
+ end
177
+
127
178
  #
128
179
  # Adds a comment to the user's account.
129
180
  #
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.1
4
+ version: 1.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
8
8
  - Daniel DeGroff
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-12-13 00:00:00.000000000 Z
12
+ date: 2022-02-18 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.
@@ -37,7 +37,7 @@ licenses:
37
37
  - Apache-2.0
38
38
  metadata:
39
39
  allowed_push_host: https://rubygems.org
40
- post_install_message:
40
+ post_install_message:
41
41
  rdoc_options: []
42
42
  require_paths:
43
43
  - lib
@@ -52,8 +52,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  requirements: []
55
- rubygems_version: 3.1.4
56
- signing_key:
55
+ rubygems_version: 3.3.5
56
+ signing_key:
57
57
  specification_version: 4
58
58
  summary: The Ruby client library for FusionAuth
59
59
  test_files: []