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

Add organizationId parameter to authenticateWithRefreshToken #244

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
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
Next Next commit
Add organizationId parameter to authenticateWithRefreshToken
mthadley committed Aug 7, 2024

Verified

This commit was signed with the committer’s verified signature.
mthadley Michael Hadley
commit 3ac86cf4259d76a21bed8d2f0300fbd9037154c0
5 changes: 4 additions & 1 deletion lib/UserManagement.php
Original file line number Diff line number Diff line change
@@ -796,6 +796,7 @@ public function authenticateWithMagicAuth(
* @param string $refreshToken The refresh token used to obtain a new access token
* @param string|null $ipAddress The IP address of the request from the user who is attempting to authenticate.
* @param string|null $userAgent The user agent of the request from the user who is attempting to authenticate.
* @param string|null $organizationId The user agent of the request from the user who is attempting to authenticate.
*
* @throws Exception\WorkOSException
*
@@ -805,12 +806,14 @@ public function authenticateWithRefreshToken(
$clientId,
$refreshToken,
$ipAddress = null,
$userAgent = null
$userAgent = null,
$organizationId = null
) {
$path = "user_management/authenticate";
$params = [
"client_id" => $clientId,
"refresh_token" => $refreshToken,
"organization_id" => $organizationId,
"ip_address" => $ipAddress,
"user_agent" => $userAgent,
"grant_type" => "refresh_token",