I'm trying to find C#/VB.net examples to learn how to run oauth2 with gmail. Looking to recode an existing application that used to used gmails app password to send automated emails (logging in with just user name and password). Google turned that feature off and now requires oauth 2.0. The windows desktop application uses just a single gmail account and no other APIs from google so it should be a simple http request and response for the credentials (i think). not sure how to manage this oauth process though as it's set up for much more complicated interactions. The application is using IMapX dll to manage the email interactions which isn't a paid utility and seems to have limited support anymore.
Found this in c# which I wasn't able to convert: enter link description here How do you use Basic Authentication with System.Net.Http.HttpClient?
Going over google docs hasn't helped much and their example code is in python, etc. which wasn't helpful.