

When a user is authenticated the credetials are stored for each user who logs in based up on Environment.UserName The There are two key points the the code above.įile datastore is used to store the user credentials after the user has authenticated your application the credentials are by default stored in %appData%. I followed this tutorial Ĭredential = GoogleWebAuthorizationBroker.AuthorizeAsync(

I don't have a good information about this. And then the web page turns to the api key. Note: At the first login with this code, the google drive login page was opened and I logged into my account and got permission for the google application. I wondered can I authenticate users with different way?(#2 question) Like, open a google drive login page and users can be login from it or something like that. ThrowIfExceptional(Boolean includeTaskCanceledExceptions) location: `1.GetResultCore(Boolean waitCompletionNotification) location: `1.get_Result() location: .Authentication() But when I obfuscate(obfuscator: confuserex) the code, this method throws an error. This code work in local and also work in production. credential = GoogleWebAuthorizationBroker.AuthorizeAsync(

I am already using google drive api (v3) for this but the authentication method does not work as expected. All users enable their own google drive API and use the credentials of that account. Users can be login to their own google drive accounts and use google drive for download and upload files. This application basically for backup and restore.
