Comments (8)
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.
I have tried following
- updated
<data android:scheme="dropboxauth.page.link/dropboxauth" />
gives cancelled exception. - 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". - 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
from simple_auth.
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.
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.
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.
I just pushed a new version. It will work around the casing issue.
from simple_auth.
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.
how can I get
accountId
of the dropbox user. I gettoken
anduserdata
, but inuserdata
I couldn't find anyaccountId
.
@Clancey
Any help on this please.
from simple_auth.
Related Issues (20)
- code for iOS swift HOT 4
- Documentation lacks information HOT 1
- iOS build issue
- Incompatible with http 0.13.0 HOT 5
- Flutter 2.0 - Dependency compatibility issue HOT 2
- Error in new simple_auth 2.0.10 HOT 2
- Redirection Issue for Instagram Login HOT 2
- Authenticator doesn't cancel after dismissing on iOS and macOS HOT 1
- redirect from facebook not being catched HOT 1
- Github login with Flutter web HOT 2
- The plugin `simple_auth_flutter` uses a deprecated version of the Android embedding. HOT 2
- Bad state: Future already completed - Google Sign In on Mac
- Kindly add support for digest authentication and also share example that how to use digest authentication.
- [Fix] exported in Android 12
- Apple support HOT 4
- Custom tabs closes when putting the app on background or switching task HOT 2
- Can I use this library in a Flutter app for web only ?
- Windows Desktop
- After Instagram Login redirect to webview
- Upgrade http module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple_auth.