Hello Athulya Pillai,
Thanks for posting!
As per my research, we can't use DelegateAuthenticationProvider
any more to use it directly to new GraphServiceClient(delegateAuthenticationProvider)
, if we want to generate the auth_provider to new GraphServiceClient
, we have to follow to use BaseBearerTokenAuthenticationProvider + IAccessTokenProvider.
Please refer the below GitHub thread:
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1368
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.