diff --git a/src/Provider/Azure.php b/src/Provider/Azure.php index bf9c753..52a3df7 100644 --- a/src/Provider/Azure.php +++ b/src/Provider/Azure.php @@ -89,7 +89,7 @@ protected function getOpenIdConfiguration($tenant, $version) { if (!array_key_exists($version, $this->openIdConfiguration[$tenant])) { $versionInfix = $this->getVersionUriInfix($version); $openIdConfigurationUri = $this->urlLogin . $tenant . $versionInfix . '/.well-known/openid-configuration?appid=' . $this->clientId; - + $factory = $this->getRequestFactory(); $request = $factory->getRequestWithOptions( 'get', @@ -370,7 +370,7 @@ public function validateTokenClaims($tokenClaims) { $version = array_key_exists('ver', $tokenClaims) ? $tokenClaims['ver'] : $this->defaultEndPointVersion; $tenant = $this->getTenantDetails($this->tenant, $version); if ($tokenClaims['iss'] != $tenant['issuer']) { - throw new \RuntimeException('Invalid token issuer (tokenClaims[iss]' . $tokenClaims['iss'] . ', tenant[issuer] ' . $tenant['issuer'] . ')!'); + throw new \RuntimeException('Invalid token issuer (tokenClaims[iss] ' . $tokenClaims['iss'] . ', tenant[issuer] ' . $tenant['issuer'] . ')!'); } } @@ -466,7 +466,7 @@ protected function getVersionUriInfix($version) */ public function getTenantDetails($tenant, $version) { - return $this->getOpenIdConfiguration($this->tenant, $this->defaultEndPointVersion); + return $this->getOpenIdConfiguration($this->tenant, $version); } /**