Why the IAuthenticationProvider vs ITokenCredential pattern? #548
darrelmiller
started this conversation in
General
Replies: 1 comment
-
to enable composition and reusability without bringing additional dependencies |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I realize that we don't want to take a direct dependency on Azure.Core to get the ITokenCredential interface, but we could create our own version of ITokenCredential that could be mapped to the Azure one. The question is more related to the style of an object that holds a "Credential" vs a "Provider".
I think I would rather use a pattern we we pass a "credential" object to HttpCore rather than a "provider". Having said that, it does depend somewhat on the OBO work. A "credential" makes less sense when you are implementing multi-user scenarios.
Beta Was this translation helpful? Give feedback.
All reactions