Skip to content

Azure AD API deprecated => Migration to Graph API API_VERSION #221

@SarahCordeau

Description

@SarahCordeau

Hi,

I need to migrate to the new Graph API so I have changed my configuration to:

url_api: 'https://graph.microsoft.com/' api_version: 'v1.0'

But when I call a get from the provider thenetworg/oauth2-azure/src/Provider/Azure.php, the api version is not added to the url and I got this error:
Unkown version me

$provider->get('me/memberOf', $accessToken);

When I dump the url I have https://graph.microsoft.com/me/memberOf instead of https://graph.microsoft.com/v1.0/me/memberOf.

Did I omit something?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions