Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jumbojett#413 requestTokenExchange fixed to support PHP8.x
Browse files Browse the repository at this point in the history
Changed parameter jumbojett#2 of http_build_query to empty string
mstrey authored and hexmode committed Apr 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2922ad4 commit e830e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
@@ -972,7 +972,7 @@ public function requestTokenExchange(string $subjectToken, string $subjectTokenT
}

// Convert token params to string format
$post_params = http_build_query($post_data, null, '&', $this->encType);
$post_params = http_build_query($post_data, '', '&', $this->encType);

return json_decode($this->fetchURL($token_endpoint, $post_params, $headers), false);
}

0 comments on commit e830e53

Please sign in to comment.