Trying to run a refresh authorization gives you a token, but not a service. (ie the token hasn't expired, so it won't need the browser to authenticate anything.) It simply will not allow you to use a token created for a local application using GoogleWebAuthorizationBroker.AuthorizeAsync - it will error even if a browser isn't needed. It is almost as if the API deliberately defeats your attempts to do so. As many have discovered, this does not work when you switch to an IIS based solution. NET only shows the console based solution. I'm going to put my answer here, because it is what I needed, and it might be useful to others. Jalpa's answer was not what I was looking for, nor was anything referenced in any of the links. My question is: How can I authorize access to a Google Drive thatī) Does not require a separate ASP Web Application to implement MVC for authorization. The suggestion to follow the standard MVC model doesn't work for me - adding a second web site/page is needlessly complicated for my needs. NET quickstart, but of course that is a console app, and will not work when I move it to IIS. I cannot implement a login/auth system because one already exists for the ERP. ![]() I am extending an existing ERP system that runs as an IIS application. So, I can be very optimistic WRT security concerns. There is nothing of value in the folder, and it is used internally only. The only thing in it will be empty form documents and spreadsheet templates. ![]() I need to access a directory on Google Drive that is a shared folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |