Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/main/python/fusionauth/fusionauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3335,6 +3335,22 @@ def retrieve_two_factor_status(self, user_id, application_id, two_factor_trust_i
.get() \
.go()

def retrieve_two_factor_status_using(self, request):
"""
Retrieve a user's two-factor status.

This can be used to see if a user will need to complete a two-factor challenge to complete a login,
and optionally identify the state of the two-factor trust across various applications. This operation
provides more payload options than retrieveTwoFactorStatus.

Attributes:
request: The request object that contains all the information used to check the status.
"""
return self.start().uri('/api/two-factor/status') \
.body_handler(JSONBodyHandler(request)) \
.post() \
.go()

def retrieve_user(self, user_id):
"""
Retrieves the user for the given Id.
Expand Down