Skip to content

Commit 69c4db5

Browse files
Merge branch 'develop' of github.com:FusionAuth/fusionauth-python-client into lyle/ENG-3375/introspect-and-libs
2 parents cfafcc0 + 5eabb01 commit 69c4db5

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

build.savant

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* language governing permissions and limitations under the License.
1515
*/
1616

17-
project(group: "io.fusionauth", name: "fusionauth-python-client", version: "1.61.0", licenses: ["ApacheV2_0"]) {
17+
project(group: "io.fusionauth", name: "fusionauth-python-client", version: "1.62.0", licenses: ["ApacheV2_0"]) {
1818
workflow {
1919
fetch {
2020
cache()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="fusionauth-client",
8-
version="1.61.0",
8+
version="1.62.0",
99
author="FusionAuth",
1010
author_email="dev@fusionauth.io",
1111
description="A client library for FusionAuth",

src/main/python/fusionauth/fusionauth_client.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,29 @@ def check_change_password_using_login_id(self, login_id):
230230
231231
An HTTP status code of 400 with a general error code of [TrustTokenRequired] indicates that a Trust Token is required to make a POST request to this API.
232232
233+
Attributes:
234+
login_id: The loginId (email or username) of the User that you intend to change the password for.
235+
"""
236+
return self.start().uri('/api/user/change-password') \
237+
.url_parameter('loginId', self.convert_true_false(login_id)) \
238+
.get() \
239+
.go()
240+
241+
def check_change_password_using_login_id_and_login_id_types(self, login_id, login_id_types):
242+
"""
243+
Check to see if the user must obtain a Trust Request Id in order to complete a change password request.
244+
When a user has enabled Two-Factor authentication, before you are allowed to use the Change Password API to change
245+
your password, you must obtain a Trust Request Id by completing a Two-Factor Step-Up authentication.
246+
247+
An HTTP status code of 400 with a general error code of [TrustTokenRequired] indicates that a Trust Token is required to make a POST request to this API.
248+
233249
Attributes:
234250
login_id: The loginId of the User that you intend to change the password for.
251+
login_id_types: The identity types that FusionAuth will compare the loginId to.
235252
"""
236253
return self.start().uri('/api/user/change-password') \
237-
.url_parameter('username', self.convert_true_false(login_id)) \
254+
.url_parameter('loginId', self.convert_true_false(login_id)) \
255+
.url_parameter('loginIdTypes', self.convert_true_false(login_id_types)) \
238256
.get() \
239257
.go()
240258

@@ -3549,7 +3567,7 @@ def retrieve_user_by_login_id_with_login_id_types(self, login_id, login_id_types
35493567
35503568
Attributes:
35513569
login_id: The email or username of the user.
3552-
login_id_types: the identity types that FusionAuth will compare the loginId to.
3570+
login_id_types: The identity types that FusionAuth will compare the loginId to.
35533571
"""
35543572
return self.start().uri('/api/user') \
35553573
.url_parameter('loginId', self.convert_true_false(login_id)) \
@@ -3778,7 +3796,7 @@ def retrieve_user_login_report_by_login_id_and_login_id_types(self, login_id, st
37783796
login_id: The userId id.
37793797
start: The start instant as UTC milliseconds since Epoch.
37803798
end: The end instant as UTC milliseconds since Epoch.
3781-
login_id_types: the identity types that FusionAuth will compare the loginId to.
3799+
login_id_types: The identity types that FusionAuth will compare the loginId to.
37823800
"""
37833801
return self.start().uri('/api/report/login') \
37843802
.url_parameter('applicationId', self.convert_true_false(application_id)) \

0 commit comments

Comments
 (0)