Comments (6)
This is fixed by using a custom scheme to redirect and registering it in the application.manifest. https://github.com/Clancey/simple_auth#redirect
from simple_auth.
Unfortunately, it is not. We used a local redirect link. In that case the redirection worked in every case (except for Google and this might/will be resolved by adding it to the manifest).
But as said the redirection for all other apis worked, just the window did not close which then resulted in a cancelledexception although the authentication worked out.
from simple_auth.
Do you mind sharing the redirect url you choose? When you say local, was it localhost?
from simple_auth.
localhost:8080/redirect
And it worked after authentication.
It's just the window from the other authenticator classes which does not close automatically
from simple_auth.
This is exactly what I was thinking. With the secure native logins, it is impossible to redirect that back to the app. As I said before that login window if your not using embedded is outside the scope of your app. So you need a redirect to open your app again. I promise you it's worth it to jump through the extra hoops.
You should use a custom redirect instead of an http one. Then you need to register it with the application.manifest. So I would redirect to something like myappname://redirect
Then it will work without the changes your posted. And It is more secure!
from simple_auth.
Ok I will give it a try!
Thank you for your patience 👍
from simple_auth.
Related Issues (20)
- 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
- Chrome tabs remain open after redirect back to app
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.