microsoftgraph / msgraph-sdk-dotnet-auth

Archived - use the TokenCredential classes provided by Azure.Identity. https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme
https://graph.microsoft.com
MIT License
78 stars 19 forks source link

Get AuthProviderOption from request context #11

Closed peombwa closed 5 years ago

peombwa commented 5 years ago

We need to get AuthProviderOption from the request context and use it's properties in our auth providers.

Microsoft.Graph.Auth will implement the IAuthProviderOption interface defined in Microsoft.Graph.Core and provide the necessary extension methods to set and retrieve it's properties in accordance to the fluent api design.

This will help contain all auth provider related logic in one library and reduce the risk of affecting/making changes the core lib when MSAL upgrades to V3.

At the moment, the AuthProviderOption implementation needs to contain the following properties :

This change depends on this PR in our core lib https://github.com/microsoftgraph/msgraph-sdk-dotnet/pull/367

cc @darrelmiller