Skip to content

update API url to Microsoft - #222

Open
antoinemineau wants to merge 1 commit into
TheNetworg:masterfrom
antoinemineau:api-url-microsoft
Open

update API url to Microsoft#222
antoinemineau wants to merge 1 commit into
TheNetworg:masterfrom
antoinemineau:api-url-microsoft

Conversation

@antoinemineau

Copy link
Copy Markdown

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

It should fix those issues :

#216
#221

Comment thread src/Provider/Azure.php
$url = $ref;
} else {
if (false !== strpos($this->urlAPI, 'graph.windows.net')) {
if (false !== strpos($this->urlAPI, 'graph.microsoft.com')) {

@hajekj hajekj May 22, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown

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

@chc88

chc88 commented Sep 25, 2025

Copy link
Copy Markdown

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

I mentioned another possible solution?
#221

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.

4 participants