Coder Social home page Coder Social logo

Comments (8)

Clancey avatar Clancey commented on August 11, 2024

So your Redirect: <data android:scheme="com.googleusercontent.apps.682823335381-iba20i3fst8298mrn5c1ov052sg40v2g" /> is for Google Auth, not DropBox. Also the redirect in your code should match. Here is where you get to make up your own redirect, and register it with dropbox. So <data android:scheme="myAwesomeApp12345" /> then pass myAwesomeApp12345:// into the redirect when you instantiate your DropboxApi

from simple_auth.

vishaldhudum avatar vishaldhudum commented on August 11, 2024

I have tried following

  1. updated <data android:scheme="dropboxauth.page.link/dropboxauth" /> gives cancelled exception.
  2. cannot add "myAwesomeApp12345" in dropbox Redirect URIs as it gives error "You must provide a proper URI with an authority or path component", so added https://myAwesomeApp12345 and <data android:scheme="myAwesomeApp12345" /> which gives error page saying "site can't be reached".
  3. similar is the case for http://localhost

Have pushed the code if you wish to check, here are the changes

and below urls are added in this dummy account
image

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

Can you put "myAwesomeApp12345://dropboxAuth"? What you are doing is registering a way for the Android to redirect to your app. Https is already taken. And when you do <data android:scheme="myAwesomeApp12345" /> you are telling android that you want to open for all urls that start use myAwesomeApp12345 , i.e: myAwesomeApp12345://dropboxAuth

from simple_auth.

vishaldhudum avatar vishaldhudum commented on August 11, 2024

With these changes and myAwesomeApp12345://dropboxAuth registered in dropbox redirect URI, after login to dropbox account it gets stuck on page where user needs to allow access to files in dropbox, though the user gets linked on tapping Allow.

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

It looks like I gave you bad advice. The Scheme needs to be all lower case. Android forces it. So register with myawesomeapp12345

from simple_auth.

Clancey avatar Clancey commented on August 11, 2024

I just pushed a new version. It will work around the casing issue.

from simple_auth.

vishaldhudum avatar vishaldhudum commented on August 11, 2024

Lowercase URL worked. Thank you.

Though after updating simple_auth: ^2.0.1 & simple_auth_flutter: ^2.0.1 in pubspec.yaml didn't worked with myAwesomeApp12345://dropboxAuth

Also how can I get accountId of the dropbox user. I get token and userdata, but in userdata I couldn't find any accountId.

from simple_auth.

vishaldhudum avatar vishaldhudum commented on August 11, 2024

how can I get accountId of the dropbox user. I get token and userdata, but in userdata I couldn't find any accountId.

@Clancey
Any help on this please.

from simple_auth.

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.