Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative for DelegateAuthenticationProvider class in C# .NET Tab sample #1390

Open
pankajmunde12 opened this issue Sep 12, 2024 · 4 comments
Assignees

Comments

@pankajmunde12
Copy link
Contributor

Hi Team,
I was testing tab-request-approval sample on my machine (https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/tab-request-approval).
While creating a similar application I got the message that DelegateAuthenticationProvider class is deprecated and no longer supported. So could you please provide some alternative solution for this class.
At many places it's suggested to use OnBehalfOfCredential, but it would be helpful to know how to use it in this specific sample.

Thanks and Regards,
Pankaj Munde

@sayali-MSFT
Copy link

@pankajmunde12 - Thanks for reporting your issue.
We will check this at our end and will get back to you.

@sayali-MSFT
Copy link

@pankajmunde12- By replacing DelegateAuthenticationProvider with OnBehalfOfCredential, you can handle authentication in a modern and supported way.
Please have look into this document-

  1. https://learn.microsoft.com/en-us/javascript/api/%40azure/identity/onbehalfofcredential?view=azure-node-latest
  2. https://learn.microsoft.com/en-us/dotnet/api/azure.identity.onbehalfofcredential?view=azure-dotnet

@pankajmunde12
Copy link
Contributor Author

@pankajmunde12- By replacing DelegateAuthenticationProvider with OnBehalfOfCredential, you can handle authentication in a modern and supported way. Please have look into this document-

  1. https://learn.microsoft.com/en-us/javascript/api/%40azure/identity/onbehalfofcredential?view=azure-node-latest
  2. https://learn.microsoft.com/en-us/dotnet/api/azure.identity.onbehalfofcredential?view=azure-dotnet

Thanks @sayali-MSFT!
This is helpful! I will check and try to implement the same.

@pankajmunde12
Copy link
Contributor Author

Thanks @sayali-MSFT!
This info is helpful and answers my query.
This issue can now be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants