Skip to content

Commit 07c2602

Browse files
authored
Merge wied03/ENG-3603/mfa-retrieve-status-post (#57)
* client generation/new method * better method name
1 parent 5eabb01 commit 07c2602

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/main/python/fusionauth/fusionauth_client.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3335,6 +3335,22 @@ def retrieve_two_factor_status(self, user_id, application_id, two_factor_trust_i
33353335
.get() \
33363336
.go()
33373337

3338+
def retrieve_two_factor_status_using(self, request):
3339+
"""
3340+
Retrieve a user's two-factor status.
3341+
3342+
This can be used to see if a user will need to complete a two-factor challenge to complete a login,
3343+
and optionally identify the state of the two-factor trust across various applications. This operation
3344+
provides more payload options than retrieveTwoFactorStatus.
3345+
3346+
Attributes:
3347+
request: The request object that contains all the information used to check the status.
3348+
"""
3349+
return self.start().uri('/api/two-factor/status') \
3350+
.body_handler(JSONBodyHandler(request)) \
3351+
.post() \
3352+
.go()
3353+
33383354
def retrieve_user(self, user_id):
33393355
"""
33403356
Retrieves the user for the given Id.

0 commit comments

Comments
 (0)