Skip to content
Open
Changes from all commits
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
6 changes: 3 additions & 3 deletions src/Provider/Azure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'] . ')!');
}
}

Expand Down Expand Up @@ -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);
}

/**
Expand Down