Skip to content

Commit

Permalink
Fix for Microsoft Graph incompatibility #11
Browse files Browse the repository at this point in the history
When using getObjects, the URL passed to the request was incorrect.
  • Loading branch information
hajekj committed Feb 15, 2016
1 parent dd81979 commit a4e3ba9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Provider/Azure.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ public function getResourceOwnerDetailsUrl(AccessToken $token)

public function getObjects($tenant, $ref, $accessToken, $objects = [], $headers = [])
{
$response = $this->request('GET', $tenant."/".$ref, $accessToken, ['headers' => $headers]);
if (filter_var($ref, FILTER_VALIDATE_URL) === FALSE) {
$ref = $tenant."/".$ref;
}
$response = $this->request('GET', $ref, $accessToken, ['headers' => $headers]);

if ($response) {
$values = $response['value'];
Expand Down

0 comments on commit a4e3ba9

Please sign in to comment.