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
Thank you for update! And excuse me for late response.
Yes, when there is no (or not enough) persmissions, Google will answer with error instead of access token. That response is not handled properly, causing faceless ArgumentNullException with poor context.
What I will do next is proper handling of error responses for GoogleClient. And yes, this solution described by is closer to "by design" than to "workaround".
Thanks again for helping to ensure better quality of OAuth2 library!
Actually this is not a google that throws this exception. When you ask to provide only email and nothing else, all other properties such as First name, Last name, etc aren't passed back and therefore the method used in UserInfo creation throws an exception as it does not handle null values.
I'm trying to use OAuth2 0.8.25 (the latest one in NuGet). Here's my GoogleClient configuration:
Here's where it fails:
Here's where I am after authentication:
Here's a stacktrace:
The text was updated successfully, but these errors were encountered: