Closed shrimpy closed 7 years ago
I just ran into this same issue. I believe it comes from using the overload of RedeemAuthorizationCodeAsync
that doesn't take an HttpProvider
.
It looks like the HttpProvider
gets disposed before the task has been awaited, which cancels the request.
Easy workaround is to surround the call to RedeemAuthorizationCodeAsync
with using(var httpProvider = new HttpProvider())
and pass that HttpProvider
in.
This is a bug. Thanks for reporting. Going to send out the fix in the next update, which should be coming soon.
Meanwhile, use @chrispatrick 's workaround.
@shrimpy I believe this is fixed in 1.0.3. Can you update your NuGet package and give it a shot?
Fixed
With below code, "A task was canceled." was throw when try to authorize token.
Updated to below code, i am able to get correct token