You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConfidentialClient - service to service (AcquireTokenForClient)
Is this a new or an existing app?
The app is in production, and I have upgraded to a new version of MSAL
Issue description and reproduction steps
.NET8 Web App with ConfidentialClientApp and config ConfidentialClientApplicationOptions in appsettings.json
Everything was working as expected.
I tried to enable the new Configuration binder Source generators coming with .NET8: <EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator> in csproj
With source generator enabled, I get compile errors as there is an obsolete Property in the Options class:
Error CS0619 'ApplicationOptions.Component' is obsolete: 'Should use ClientName and ClientVersion properties instead of Component'
Well, removing it is a binary breaking change at least. But even just obsoleting with a warning will not fully solve this for folks who have "treat warnings as errors" enabled. I think it's ok to remove it in this case.
Library version used
4.58
.NET version
.NET 8.0
Scenario
ConfidentialClient - service to service (AcquireTokenForClient)
Is this a new or an existing app?
The app is in production, and I have upgraded to a new version of MSAL
Issue description and reproduction steps
.NET8 Web App with ConfidentialClientApp and config ConfidentialClientApplicationOptions in appsettings.json
Everything was working as expected.
I tried to enable the new Configuration binder Source generators coming with .NET8:
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator>
in csprojWith source generator enabled, I get compile errors as there is an obsolete Property in the Options class:
Error CS0619 'ApplicationOptions.Component' is obsolete: 'Should use ClientName and ClientVersion properties instead of Component'
Relevant code snippets
Expected behavior
I can use the new Configuration Binder Source Generators of .NET8, no compile error.
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
have not tried with other/older versions
Solution and workarounds
Don't use Configuration Binder Source Generators of .NET8
The text was updated successfully, but these errors were encountered: