-
Notifications
You must be signed in to change notification settings - Fork 22
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
Can't i use msaAuthProvider.AuthenticateUserAsync() in .Net Core 3.1 #70
Comments
Seem like it is a dead repository and no one cares to reply. I wonder how to contact their management staff. |
I am also curious, but I solved the problem as follows; I don't use the OneDrive API anymore :) |
@muscankaraoglu you need to build it against .net core 3.1. Since Microsoft Graph Core does not support RefreshToken you need to remove corresponding code, but only in adal and business code, not in msaAuthProvider. |
the problem is here: onedrive-sdk-dotnet-msa-auth-adapter/src/OneDrive.Sdk.Authentication.Common/OAuthHelper.cs Line 289 in a7b4696
the problem is that some json vals in response (like ttl, for example) are pure numeric and not strings, and so deserialize is throwing when it tries to interp the first num it sees as a string. the workaround is o provide your own serializer that correctly parses the string as Json, and then converts it to the type param:
|
I fixed it in OAuthHelper.cs |
As you can see,
when i came on await msaAuthProvider.AuthenticateUserAsync(); line it throws this exception.
I couldn't find any answer for this issue in .net core.
Is this supports .net core 3.1?
Can anyone help me?
The text was updated successfully, but these errors were encountered: