From e4dec6dd98734f2287908f1aa8295dc3b41eaf34 Mon Sep 17 00:00:00 2001 From: Benoit Duffez Date: Mon, 2 Dec 2024 10:38:44 -0800 Subject: [PATCH] add client id/secret to the MS live request body for more details see https://github.com/hwi/HWIOAuthBundle/issues/2002 --- src/OAuth/ResourceOwner/GenericOAuth2ResourceOwner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OAuth/ResourceOwner/GenericOAuth2ResourceOwner.php b/src/OAuth/ResourceOwner/GenericOAuth2ResourceOwner.php index 24bf846f1..267a16ed3 100644 --- a/src/OAuth/ResourceOwner/GenericOAuth2ResourceOwner.php +++ b/src/OAuth/ResourceOwner/GenericOAuth2ResourceOwner.php @@ -93,6 +93,8 @@ public function getAccessToken(HttpRequest $request, $redirectUri, array $extraP 'code' => $request->query->get('code'), 'grant_type' => 'authorization_code', 'redirect_uri' => $redirectUri, + 'client_id' => $this->options['client_id'], + 'client_secret' => $this->options['client_secret'], ], $extraParameters); $response = $this->doGetTokenRequest($this->options['access_token_url'], $parameters);