From a88b4fc1c2cd428b7b8cbdc06c94b6b6c9f665fd Mon Sep 17 00:00:00 2001 From: Jannos-443 <77551365+Jannos-443@users.noreply.github.com> Date: Fri, 28 Nov 2025 14:29:12 +0100 Subject: [PATCH] Microsoft Provider - fix missing proxy options provider was not working with proxy only. --- src/Microsoft/Provider.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Microsoft/Provider.php b/src/Microsoft/Provider.php index 8e9e9ba27..82cd03846 100644 --- a/src/Microsoft/Provider.php +++ b/src/Microsoft/Provider.php @@ -283,8 +283,10 @@ protected function parseIdToken($body) */ private function getJWTKeys(): array { - $response = $this->getHttpClient()->get($this->getOpenIdConfiguration()->jwks_uri); - + $response = $this->getHttpClient()->get($this->getOpenIdConfiguration()->jwks_uri, [ + RequestOptions::PROXY => $this->getConfig('proxy'), + ]); + return json_decode((string) $response->getBody(), true); } @@ -304,7 +306,7 @@ private function getOpenIdConfiguration(): mixed // $discovery = sprintf('https://login.microsoftonline.com/%s/v2.0/.well-known/openid-configuration', $this->getConfig('tenant', 'common')); - $response = $this->getHttpClient()->get($discovery); + $response = $this->getHttpClient()->get($discovery, [RequestOptions::PROXY => $this->getConfig('proxy')]); } catch (Exception $ex) { throw new InvalidStateException("Error on getting OpenID Configuration. {$ex}"); }