Giter Site home page Giter Site logo

Comments (6)

elringus avatar elringus commented on May 24, 2024 1

@nicolasboattini This is probably due to auth token not being cached or used. Try building the sample project and check if it reproduces for you to figure if that's related with your custom app or with the plugin. Feel free to open another issue to discuss this.

from unity-google-drive.

nicolasboattini avatar nicolasboattini commented on May 24, 2024

Searching a bit further i found this: https://github.com/elringus/unity-google-drive/blob/master/Assets/UnityGoogleDrive/Runtime/Authorization/LoopbackAccessTokenProvider.cs

where there is a method called ExecuteFullAuth() that implements this:
// Creates a redirect URI using an available port on the loopback address.
redirectUri = $"{settings.LoopbackUri}:{GetRandomUnusedPort()}";

I assume that here is where my problem resides cause its clearly using a random port. It really has to be like that? Isn't there a way to have a static port?

from unity-google-drive.

elringus avatar elringus commented on May 24, 2024

It has to be unused, but not necessarily random. The thing is, we do not know which port is unused on user machine. I guess there could be an option in config to use specific port instead of finding a random unused one.

from unity-google-drive.

nicolasboattini avatar nicolasboattini commented on May 24, 2024

Thanks for quick reply. I guess that having a field to use specific port set by the user could be a gamechanger enhancement nowadays. I'd like to do it myself but i'm afraid my knowledgements aren't that high, but i'll give it a try, if i find something i'll make a PR.

from unity-google-drive.

nicolasboattini avatar nicolasboattini commented on May 24, 2024

Done! Wasn't that hard i think.
Requesting for aproval here: #136

from unity-google-drive.

nicolasboattini avatar nicolasboattini commented on May 24, 2024

Nvm, it have a static port but the prompting for permissions stills appearing for every photo I try to upload. I don't know what else to do. Maybe it is some missing configuration in mi application in Google Cloud or maybe there is a way to set a default sign-in in the config and use that.

from unity-google-drive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.