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
When calling AcquireTokenForClientAsync with an IClientAssertionCertificate from an application on .NET Framework 4.7 an exception is thrown with inner exception "Object reference not set to an instance of an object."
On 4.6.2 works correctly and no exception is thrown.
This is the same issue encountered on ADAL.NET (as it's the same code). The default RSA provider which is returned from X509AsymmetricSecurityKey::GetAsymmetricAlgorithm in .NET Framework 4.7 has changed.
* Fix#448: Handle new RSA default (RSACng) on netfx4.7
* Added unit test to test cryptography libraries used by MSAL.
* Fixed Unit test
* Updated testCert to use an RSA private key
When calling
AcquireTokenForClientAsync
with anIClientAssertionCertificate
from an application on .NET Framework 4.7 an exception is thrown with inner exception "Object reference not set to an instance of an object."On 4.6.2 works correctly and no exception is thrown.
This is the same issue encountered on ADAL.NET (as it's the same code). The default RSA provider which is returned from
X509AsymmetricSecurityKey::GetAsymmetricAlgorithm
in .NET Framework 4.7 has changed.Please see this bug:
AzureAD/azure-activedirectory-library-for-dotnet#708.
And this PR:
AzureAD/azure-activedirectory-library-for-dotnet#732
The text was updated successfully, but these errors were encountered: