Philip Gichuhi

Results 216 comments of Philip Gichuhi

@ian-paqt should be the tenant that you want to request data from. However, if your application is [multi-tenant](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#register-an-application) you can pass `"common"` Checking the [Endpoints](https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols#endpoints) on your App Registrations page...

Thanks for the feedback. We need to document this better. Using the info in the `TokenRequestContext` e.g. `AuthorizationCodeContext` the SDK fetches a token for the requests made on a `GraphServiceClient`...

I would recommend the approach above however, should you want to handle the tokens yourself: - Extend the [`GraphPhpLeagueAccessTokenProvider`](https://github.com/microsoftgraph/msgraph-sdk-php-core/blob/dev/src/Authentication/GraphPhpLeagueAccessTokenProvider.php) and override `getAuthorizationTokenAsync()` to return an access token. - Extend the...

@Orrison @ian-paqt yes, the expectation would be that you cache the `$tokenRequestContext` preferrably in memory for re-use. Would this be ideal?

> > I would recommend the approach above however, should you want to handle the tokens yourself: > > > > * Extend the [`GraphPhpLeagueAccessTokenProvider`](https://github.com/microsoftgraph/msgraph-sdk-php-core/blob/dev/src/Authentication/GraphPhpLeagueAccessTokenProvider.php) and override `getAuthorizationTokenAsync()` to return...

> > @Orrison @ian-paqt yes, the expectation would be that you cache the `$tokenRequestContext` preferrably in memory for re-use. Would this be ideal? > > Not really. It would be...

@jamesBotwright thanks for reaching out and apologies for the delay on this. Hoping to have a solution reviewed and released by early next week.

Please upgrade to version `2.3.0` and check the [docs](https://github.com/microsoftgraph/msgraph-sdk-php/blob/dev/docs/Examples.md#access-token-management) on how to pass your access tokens to the library and re-use access tokens across multiple requests from a user without...

Thank you for your feedback and the workaround @bilalthepunjabi. Expecting the access token to always be a JWT was a mistake and parsing it [isn't recommended](https://learn.microsoft.com/en-us/entra/identity-platform/access-tokens). I think generating a...

Thanks for raising this issue @cnotin. While we resolve the issue with the API service team. You can also use `getAdditionalData()` to get key-value pairs for the missing properties. Minor...