Skip to content

Commit 60d6132

Browse files
handle GET on validateDeviceWithRequest with tenantId
1 parent e89debc commit 60d6132

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/FusionAuth/FusionAuthClient.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6710,14 +6710,11 @@ public function validateDevice($user_code, $client_id)
67106710
*/
67116711
public function validateDeviceWithRequest($request)
67126712
{
6713-
$post_data = array(
6714-
'client_id' => $request->client_id
6715-
,'tenantId' => ($request->tenantId !== null ? (string)$request->tenantId : null)
6716-
,'user_code' => $request->user_code
6717-
);
67186713
return $this->startAnonymous()->uri("/oauth2/device/validate")
6719-
->bodyHandler(new FormDataBodyHandler($post_data))
6720-
->post()
6714+
->urlParameter("client_id", $request->client_id)
6715+
->urlParameter("tenantId", $request->tenantId !== null ? (string)$request->tenantId : null)
6716+
->urlParameter("user_code", $request->user_code)
6717+
->get()
67216718
->go();
67226719
}
67236720

0 commit comments

Comments
 (0)