Skip to content

Conversation

antoinemineau
Copy link

I updated the code to use the new API url https://graph.microsoft.com/

It should fix those issues :

#216
#221

@@ -282,17 +282,14 @@ public function request($method, $ref, &$accessToken, $options = [])
if (false !== filter_var($ref, FILTER_VALIDATE_URL)) {
$url = $ref;
} else {
if (false !== strpos($this->urlAPI, 'graph.windows.net')) {
if (false !== strpos($this->urlAPI, 'graph.microsoft.com')) {
Copy link
Member

@hajekj hajekj May 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if this entire condition got removed from the code. Afaik Microsoft Graph doesn't support URLs like https://graph.microsoft.com/v1.0/<guid>/me etc. This was for Windows Azure Graph eg. https://learn.microsoft.com/en-us/graph/migrate-azure-ad-graph-request-differences#basic-requests

Other than that, it's great, once you update this, we can get it merged! Thanks for the PR!

@lucascroxatto
Copy link

Hi @antoinemineau, will you submit the changes requested by maintainers or did you find another workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants