Skip to content

GraphServiceClient in a multitenant app with authentication provider for app credential #838

@guru98

Description

@guru98

Hi,
i have an azure function that call microsoft graph. It'is multitenant. I would like to have a single GraphServiceClient to manage the different request for the different domain. Technically i can create an authentication provider where i do not specificy tenant in the ConfidentialClientApplicationBuilder and then i can specify it in the AcquireTokenForClient but the Authentication provider in the GraphServiceClient creation have just a method that have been invoked that have HttpRequestMessage as a parameter and doesn't contain Tenant info. This scenario is valuable, in my mind, becouse i can use token cache. Any best practice?
AB#7231

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions