Skip to content

Commit a0a39cd

Browse files
committed
merge HYPR branch into master
1 parent f307f50 commit a0a39cd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/FusionAuth/FusionAuthClient.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,6 +3046,23 @@ public function sendTwoFactorCodeForLogin($twoFactorId)
30463046
->go();
30473047
}
30483048

3049+
/**
3050+
* Begins a login request for a 3rd party login that requires user interaction such as HYPR.
3051+
*
3052+
* @param array $request The third-party login request that contains information from the third-party login
3053+
* providers that FusionAuth uses to reconcile the user's account.
3054+
*
3055+
* @return ClientResponse The ClientResponse.
3056+
* @throws \Exception
3057+
*/
3058+
public function startIdentityProviderLogin($request)
3059+
{
3060+
return $this->start()->uri("/api/identity-provider/start")
3061+
->bodyHandler(new JSONBodyHandler($request))
3062+
->post()
3063+
->go();
3064+
}
3065+
30493066
/**
30503067
* Start a passwordless login request by generating a passwordless code. This code can be sent to the User using the Send
30513068
* Passwordless Code API or using a mechanism outside of FusionAuth. The passwordless login is completed by using the Passwordless Login API with this code.

0 commit comments

Comments
 (0)