Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge wied03/ENG-1/ENG-2074/api_version #34

Open
wants to merge 1 commit into
base: degroff/ENG-1/issue1
Choose a base branch
from
Open
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
37 changes: 37 additions & 0 deletions src/main/python/fusionauth/fusionauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,18 @@ def comment_on_user(self, request):
.post() \
.go()

def complete_verify_identity(self, request):
"""
Completes verification of an identity using verification codes from the Verify Start API.

Attributes:
request: The identity verify complete request that contains all the information used to verify the identity.
"""
return self.start().uri('/api/identity/verify/complete') \
.body_handler(JSONBodyHandler(request)) \
.post() \
.go()

def complete_web_authn_assertion(self, request):
"""
Complete a WebAuthn authentication ceremony by validating the signature against the previously generated challenge without logging the user in
Expand Down Expand Up @@ -4088,6 +4100,18 @@ def send_two_factor_code_for_login_using_method(self, two_factor_id, request):
.post() \
.go()

def send_verify_identity(self, request):
"""
Send a verification code using the appropriate transport for the identity type being verified.

Attributes:
request: The identity verify send request that contains all the information used send the code.
"""
return self.start().uri('/api/identity/verify/send') \
.body_handler(JSONBodyHandler(request)) \
.post() \
.go()

def start_identity_provider_login(self, request):
"""
Begins a login request for a 3rd party login that requires user interaction such as HYPR.
Expand Down Expand Up @@ -4131,6 +4155,19 @@ def start_two_factor_login(self, request):
.post() \
.go()

def start_verify_identity(self, request):
"""
Start a verification of an identity by generating a code. This code can be sent to the User using the Verify Send API
Verification Code API or using a mechanism outside of FusionAuth. The verification is completed by using the Verify Complete API with this code.

Attributes:
request: The identity verify start request that contains all the information used to begin the request.
"""
return self.start().uri('/api/identity/verify/start') \
.body_handler(JSONBodyHandler(request)) \
.post() \
.go()

def start_web_authn_login(self, request):
"""
Start a WebAuthn authentication ceremony by generating a new challenge for the user
Expand Down