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
49 changes: 49 additions & 0 deletions src/FusionAuth/FusionAuthClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,22 @@ public function commentOnUser($request)
->go();
}

/**
* Completes verification of an identity using verification codes from the Verify Start API.
*
* @param array $request The identity verify complete request that contains all the information used to verify the identity.
*
* @return ClientResponse The ClientResponse.
* @throws \Exception
*/
public function completeVerifyIdentity($request)
{
return $this->start()->uri("/api/identity/verify/complete")
->bodyHandler(new JSONBodyHandler($request))
->post()
->go();
}

/**
* Complete a WebAuthn authentication ceremony by validating the signature against the previously generated challenge without logging the user in
*
Expand Down Expand Up @@ -5319,6 +5335,22 @@ public function sendTwoFactorCodeForLoginUsingMethod($twoFactorId, $request)
->go();
}

/**
* Send a verification code using the appropriate transport for the identity type being verified.
*
* @param array $request The identity verify send request that contains all the information used send the code.
*
* @return ClientResponse The ClientResponse.
* @throws \Exception
*/
public function sendVerifyIdentity($request)
{
return $this->start()->uri("/api/identity/verify/send")
->bodyHandler(new JSONBodyHandler($request))
->post()
->go();
}

/**
* Begins a login request for a 3rd party login that requires user interaction such as HYPR.
*
Expand Down Expand Up @@ -5374,6 +5406,23 @@ public function startTwoFactorLogin($request)
->go();
}

/**
* 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.
*
* @param array $request The identity verify start request that contains all the information used to begin the request.
*
* @return ClientResponse The ClientResponse.
* @throws \Exception
*/
public function startVerifyIdentity($request)
{
return $this->start()->uri("/api/identity/verify/start")
->bodyHandler(new JSONBodyHandler($request))
->post()
->go();
}

/**
* Start a WebAuthn authentication ceremony by generating a new challenge for the user
*
Expand Down