I am trying out google drive api's to do basic upload/download/list files. But I am not sure how to get past authentication.
UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets{ClientId = clientId, ClientSecret = clientSecret},
, scopes
, userName
, CancellationToken.None
, new FileDataStore("Drive.Auth.Store")).Result;
I have seen various SO posts and I have tried adding and javascript origin and redirect uri in the google dev console as http://localhost or as http://localhost/google_oauth2/callback. Or is it that the url should be my drive url?
I am a bit confused with redirect uri's. AFAIU, this oauth code will help me access my google drive as my email id is registered in the dev console with this app and secrets are generated. So I don't have a server but just my localhost.
Sorry if this question is silly but I am still learning auth mechanisms. Will be great help if someone could correct me.