fusionauth_client 1.58.0 → 1.58.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f06ceac18ef4f1734bc2d63657291958dae0b2591d336030826589f3801b5e2f
4
- data.tar.gz: 28b3a2778f69f15ac5c0c850781a38ff38bb9c9717f3e0a9f29301ae1254faa2
3
+ metadata.gz: a843d530df907b1a7105c5c7b7345a7c360bea85f92da92fcfc486ecfc0433e6
4
+ data.tar.gz: cea632078acc92d08d524dc41cf8e7f2e499be9c5ec62af97e42376cf9d43421
5
5
  SHA512:
6
- metadata.gz: 858e37978cc8e31ee054164370719cfa78f9d40db41d33180df04035fe882472ba6704d24632e51fef33a5d3620355b8291a590858239c921049018314569e79
7
- data.tar.gz: d66be2e746892494ac3d1fba0a333e70b02fa7d3950032c87e7ff0e54b2354b054011a87a93db1cd92dea87473d8b5da3e4eb9e8557d08f25ecf76b3f65b1713
6
+ metadata.gz: f67990c69a269737e0857eca93025fc55d8e6af01fb6e54da3c6b6f34af93d6ec6703eb21de93c23bbb8c45a0dd77b22faeefb140e47f5fbdbdbcb441e2bc989
7
+ data.tar.gz: c9920639cd003d28a8060b1b770cfc6ae15edf776d5150806d4c42dba11fdc95412c005c43c4fb7b21472ec88c5776144f7777a74ec5a25ae6f9585e00f92762
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.58.0)
4
+ fusionauth_client (1.58.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.58.0", licenses: ["ApacheV2_0"]) {
18
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.58.1", licenses: ["ApacheV2_0"]) {
19
19
  workflow {
20
20
  fetch {
21
21
  cache()
@@ -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.58.0'
22
+ spec.version = '1.58.1'
23
23
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
24
24
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
25
25
 
@@ -143,6 +143,7 @@ module FusionAuth
143
143
  # @param encoded_jwt [string] The encoded JWT (access token).
144
144
  # @param request [OpenStruct, Hash] The change password request that contains all the information used to change the password.
145
145
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
146
+ # @deprecated This method has been renamed to change_password_using_jwt, use that method instead.
146
147
  def change_password_by_jwt(encoded_jwt, request)
147
148
  startAnonymous.uri('/api/user/change-password')
148
149
  .authorization('Bearer ' + encoded_jwt)
@@ -165,6 +166,23 @@ module FusionAuth
165
166
  .go
166
167
  end
167
168
 
169
+ #
170
+ # Changes a user's password using their access token (JWT) instead of the changePasswordId
171
+ # A common use case for this method will be if you want to allow the user to change their own password.
172
+ #
173
+ # Remember to send refreshToken in the request body if you want to get a new refresh token when login using the returned oneTimePassword.
174
+ #
175
+ # @param encoded_jwt [string] The encoded JWT (access token).
176
+ # @param request [OpenStruct, Hash] The change password request that contains all the information used to change the password.
177
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
178
+ def change_password_using_jwt(encoded_jwt, request)
179
+ startAnonymous.uri('/api/user/change-password')
180
+ .authorization('Bearer ' + encoded_jwt)
181
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
182
+ .post
183
+ .go
184
+ end
185
+
168
186
  #
169
187
  # Check to see if the user must obtain a Trust Token Id in order to complete a change password request.
170
188
  # When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
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.58.0
4
+ version: 1.58.1
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: 2025-07-21 00:00:00.000000000 Z
11
+ date: 2025-07-23 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.