Code Monkey home page Code Monkey logo

Comments (73)

hpoul avatar hpoul commented on May 18, 2024 25

Are there any plans to actually implement the client libraries in native dart code? Would be nice not to rely on platform messages to just bridge everything to the android/iOS libraries, this would make it work on all platforms (ie. also on desktop platforms macos, windows, linux). It gets really great when you can use the same code for mobile and desktop ;-)

from amplify-flutter.

m11gt avatar m11gt commented on May 18, 2024 19

DataStore and API (Rest and GraphQL) asap please. I am in love with flutter and want to use AWS as my backend for the project I am designing. I don't want to give in and use firebase. Any idea what the timeline will look like. Even preview will work!

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 13

Hi all, we are currently working on the design for the datastore and will put it here or in another RFC to gather feedback. Please stay tuned.

from amplify-flutter.

guoguoguilai avatar guoguoguilai commented on May 18, 2024 11

We need AppSync!

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 11

Amplify DataStore for flutter is now available as a developer preview. Get started here

from amplify-flutter.

nautsimon avatar nautsimon commented on May 18, 2024 10

hate to ask a question like this, but I am wondering about the timeline for "production-grade" authentication. Currently, I am working on a big project with about a year-long timeline. Our stack is built primarily with flutter and aws services and we have tested "hello world" auth via amplify and it works great. However, because these features are labeled as "previews" and explicitly recommended not to be used in production, I was wondering when there would be reasonable certainty in the viability of flutter auth with amplify. Thank you!

from amplify-flutter.

joekendal avatar joekendal commented on May 18, 2024 9

Honestly, we are not that bothered with auth as it is something easy to do without AWS. What we want to have is DataStore sync like Google Firestore.

from amplify-flutter.

haverchuck avatar haverchuck commented on May 18, 2024 9

@dedecube OAuth authentication is definitely on the roadmap!

from amplify-flutter.

joekendal avatar joekendal commented on May 18, 2024 9

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 8

@jamesdixon, we had been designing the datastore category for flutter and starting the implementation now. Stay Tuned!. I'll be putting up an RFC soon on this repo for visibility.

from amplify-flutter.

devcshort avatar devcshort commented on May 18, 2024 7

DataStore and API would be great to have

from amplify-flutter.

dariotrombello avatar dariotrombello commented on May 18, 2024 7

Agree. Can't wait to switch from firebase to amplify.

from amplify-flutter.

rlee1990 avatar rlee1990 commented on May 18, 2024 7

DataStore and API (Rest and GraphQL) are definitely a big need. Is there a time table for when we can see these added?

from amplify-flutter.

kjones avatar kjones commented on May 18, 2024 7

Hi all, we are currently working on the design for the datastore and will put it here or in another RFC to gather feedback. Please stay tuned.

Edit (2021-02-16): Flutter SDK now supports DataStore so no need for the following hack.

If you are impatient like I am 😏, or your product release schedule can't be adapted to wait for DataStore support in this library, then you can write your own Flutter DataStore platform plugin that lives alongside this library.

I've created an example Flutter plugin and app to demonstrate a way to do this. That code can be found here: https://github.com/kjones/flutter-datastore-example

This is not a generic solution that will work with any GraphQL schema. It has to be targeted specifically to match your schema. Dart model classes have to be hand rolled since the Amplify codgen tools don't yet support Dart.

While this solution is far from perfect, it should give you a head start on using DataStore in your Flutter app while we wait for official support.

from amplify-flutter.

joekendal avatar joekendal commented on May 18, 2024 7

@simonmahns I hear if you email your concerns to [email protected] enough times he forwards it to the right person to resolve 😅

from amplify-flutter.

mattburnsidemagenic avatar mattburnsidemagenic commented on May 18, 2024 7

Hi folks! Any idea of the timeline on oAuth / Federated login support for the social providers supported by Cognito? Thanks.

from amplify-flutter.

devorso avatar devorso commented on May 18, 2024 6

I'm looking forward to the feature Datastore..

from amplify-flutter.

rlee1990 avatar rlee1990 commented on May 18, 2024 5

Is there a weekly or bi-weekly progress report so we can know what to expect?

from amplify-flutter.

Ashish-Nanda avatar Ashish-Nanda commented on May 18, 2024 5

@rlee1990

The team has been working hard on building DataStore, and we will share some bigger updates related to that pretty soon.

from amplify-flutter.

Miamoto-Musashi avatar Miamoto-Musashi commented on May 18, 2024 5

this is not the path I would have expected
we will not be implementing a Dart aws-sdk right away as AWS service calls will be made by Amplify Android/iOS libraries

I think the other way around would make more sense since with flutter you get Android, iOS, Web, Desktop support with a single codebase.
No way to beat Firebase and GCP without full dart-sdk, IMHO.

from amplify-flutter.

andyfurniss4 avatar andyfurniss4 commented on May 18, 2024 4

Glad to hear that Amplify support is coming.

Can I please request that this supports custom authentication flows?

The current Amplify documentation pages for Android and iOS suggest initiating auth with username and dummy password and then changing the Cognito Define Auth Challenge to override the SRP_A challenge with a custom challenge. This effectively means you can't have both flows for a single Cognito user pool.

We have two applications which use the same user pool but have different sign in methods - one is custom and one is SRP_A. I am unable to use Amplify because I'm forced to do this hacky override in the Cognito trigger so we've resorted to using the Cognito SDK (non-amplify) directly.

I believe custom flow may already be implemented in the JavaScript library because the password parameter is optional on the signIn function: https://aws-amplify.github.io/amplify-js/api/classes/authclass.html#signin but this is not the case for Android or iOS so I'm not sure if this is in scope for this project or not. I can raise this as an issue in the Android and iOS repos too if necessary.

from amplify-flutter.

joekendal avatar joekendal commented on May 18, 2024 4

As you can see, we're all pretty desperate for DataStore. If we could do anything to help I would gladly open pull requests but is there a list of things TODO ? 🥴

from amplify-flutter.

Ashish-Nanda avatar Ashish-Nanda commented on May 18, 2024 4

Hi all,

We just posted an RFC for DataStore. Please take a look and give us your feedback: #160

from amplify-flutter.

Ashish-Nanda avatar Ashish-Nanda commented on May 18, 2024 4

Any plan on adding push notification support like the firebase does with firebase_messaging that would integrate with SNS?

@jobypthomas This is definitely something we are planning to add to our roadmap for this year. Please go ahead and open up a feature request with what you would like to see supported for notifications. This would help other customers upvote/contribute as well.

from amplify-flutter.

vmadupu9 avatar vmadupu9 commented on May 18, 2024 3

In future can we expect Amazon SNS wrapper as part this package ? This will give us the ecosystem of various AWS features in single package.

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 3

@rlee1990 Graphql query and mutations are currently supported in the latest versions. Subscribe API will be available in our next versions.

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 3

Amplify-flutter is now GA with new stable release 0.1.0
https://aws.amazon.com/blogs/aws/amplify-flutter-is-now-generally-available-build-beautiful-cross-platform-apps/

from amplify-flutter.

praharshbhatt avatar praharshbhatt commented on May 18, 2024 3

I didn't find any resolution. I'm basically waiting in the hope that it gets added to the library at some point relatively soon.

I was able to do this, check out my answer here: https://stackoverflow.com/a/66463088/6559381

from amplify-flutter.

e-dedecube avatar e-dedecube commented on May 18, 2024 2

At the moment there is no federate sign in methods. Did I missed something or is actually still to be implemented?

from amplify-flutter.

andruco3 avatar andruco3 commented on May 18, 2024 2

Hello

I would like to know when amplify will be ready for use in production in the authentication package and if it is working in the rememberDevice function as it is in android

from amplify-flutter.

SatyamKr07 avatar SatyamKr07 commented on May 18, 2024 2

Is phone authentication using otp supported in amplify flutter as of now?

from amplify-flutter.

kjones avatar kjones commented on May 18, 2024 2

any timeline on support for GraphQL APIs?

It has been there since 0.0.1-dev.6 I think?
https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/flutter

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 2

@BaranMichal25, we haven't tested Apple SignIn yet, it should work though when you follow the steps here. Couple of points to note are

  1. Apple SignIn is currently not supported to be provisioned (or setup) through amplify cli as mentioned in the above link.
  2. You won't be able to launch the Apple Sign In page directly using the provider input. When you call Amplify.Auth.signInWithWebUI();, all the third party providers configured with Cognito will be available for sign in (including Apple). Once we complete the testing, we will add this provider so you can launch Apple sign in directly (bypassing the Cognito's hosted UI)

from amplify-flutter.

kjones avatar kjones commented on May 18, 2024 2

@Amplifiyer and the entire team. Congratulations and thanks for all of the hard work!

from amplify-flutter.

haverchuck avatar haverchuck commented on May 18, 2024 2

@pierceglennie When you say "magic link set up with Amplify" you mean the email link set up with Amplify CLI? If so, how exactly are you doing the routing in flutter?

To answer your question - We are working on finalizing the custom auth capabilities of amplify-flutter, so please stay tuned.

from amplify-flutter.

pierceglennie avatar pierceglennie commented on May 18, 2024 2

Sorry, I should have been clearer. The log in process on our website is:

  • User enters their email and requests a log in link. The link contains a one time log in code as a query parameter

  • When they click the link, we take them to a log in page which authenticates them using Amplify. Basically we call sign in with just the username (no password) and then respond to the custom auth challenge with the code from the email link. On the Cognito side, the verification of the code uses some custom lambda scripts

  • We also give people the option to log in with a password if they prefer and have one set up

The process is pretty much as described here, except we pass the code via the query string of the login link rather than requiring the customer to type it in: https://aws.amazon.com/blogs/mobile/implementing-passwordless-email-authentication-with-amazon-cognito/

For our Flutter app, we are looking to implement the same process for consistency (and since many customers don't have passwords). We have username and password log in working fine but it's the log in link process we're having issues with.

We can successfully request a log in link (this happens via our own API which sets the custom auth code on Cognito). We have also set up this link so it will open our app using universal links. Once it's opened our app, we can extract the code from the query string.

The only bit that we're struggling on is that the sign in method of the Amplify Flutter library requires the password (unlike the javascript library) which we don't have. On the iOS library, the docs recommend passing a dummy password to support this flow and then you'll get an Auth challenge as a response (and then you send the code). This doesn't seem to work with the Flutter library though, we just get a failure response.

We have tried changing the authentication method to "CUSTOM_AUTH" in the amplify configuration file by the way. However, this doesn't fix the issue (probably because it's not yet supported) and it also stops username/password log in from working.

Thanks for the great work on the library so far by the way!

from amplify-flutter.

matthickey709 avatar matthickey709 commented on May 18, 2024 1

Is there a timeline for supporting Flutter Web with AWS? I can get it working great on the iOS simulator but it can't configure amplify when running on web. Would be great to have the web app running too!

from amplify-flutter.

rlee1990 avatar rlee1990 commented on May 18, 2024 1

Any new updates?

from amplify-flutter.

jamesonwilliams avatar jamesonwilliams commented on May 18, 2024 1

What is the backend database for the datastore?

DynamoDB, via AppSync.

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 1

What's the local database implementation?

Amplify DataStore for flutter uses amplify-android and amplify-ios as platform plugin providers and both of them use SQLite for their local database implementation.

from amplify-flutter.

PawlikMichal25 avatar PawlikMichal25 commented on May 18, 2024 1

@Amplifiyer @haverchuck
When do you expect Third-Party Sign-Ups (Google, Apple, Facebook) to be implemented?

Things described here: https://docs.amplify.aws/lib/auth/social_signin_web_ui/q/platform/android#add-response-handler

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 1

@nithin-seenivasan sync from (DynamoDB to Client) should work without issues, can you create a new issue with reproduction steps? Selective sync though is slightly different and is currently not implemented in amplify-flutter. Please create a feature request issue for that as well.

from amplify-flutter.

DanielChuDC avatar DanielChuDC commented on May 18, 2024 1

Any plan on adding push notification support like the firebase does with firebase_messaging that would integrate with SNS?

@jobypthomas This is definitely something we are planning to add to our roadmap for this year. Please go ahead and open up a feature request with what you would like to see supported for notifications. This would help other customers upvote/contribute as well.

Hi if nobody created this feature request, I will create a feature request on the push notification support describe according to @jobypthomas. I am working on a project using amplify and required push notification. Looking forward to see how amplify can enable this feature.

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024 1

@BaranMichal25, we recently released 0.0.2-dev.1 version which has this feature (Hosted UI or Social SignIn). More details here https://docs.amplify.aws/lib/auth/signin_web_ui/q/platform/flutter

from amplify-flutter.

pierceglennie avatar pierceglennie commented on May 18, 2024 1

Hi @Amplifiyer. Is custom auth supported by this library yet? Specifically, I'm using a magic link set up with Amplify on the web (which works well) and I'm trying to support it on iOS and Android with Flutter. It doesn't seem to be working but I'm not sure if that's because the library just doesn't support it yet or if I'm doing something wrong.

If it's not supported, do you have any idea when it might be added? It's a critical feature for me – if it's not imminent then I'll have to look into alternative options.

If it is supported, I'll raise a separate issue to see what's going on. In brief, I've have the app working with username and password login but when I change to "authenticationFlowType": "CUSTOM_AUTH" in amplifyconfiguration.dart and try to sign in I get an AMPLIFY_SIGNIN_FAILED error each time. I would expect to get a response with the next step being submitting the confirmation code from the magic link.

from amplify-flutter.

haverchuck avatar haverchuck commented on May 18, 2024

Can I please request that this supports custom authentication flows?

@andyfurniss4 Thanks for your feedback - we will definetely investigate this feature request!

from amplify-flutter.

jamesdixon avatar jamesdixon commented on May 18, 2024

@Amplifiyer thanks for the update on DataStore. If there's any update, would love to hear it. Also, more than happy to help alpha test anything :)

from amplify-flutter.

sbutlerjr avatar sbutlerjr commented on May 18, 2024

+1 desperate for DataStore.

from amplify-flutter.

psandell2020 avatar psandell2020 commented on May 18, 2024

What is the backend database for the datastore?

Amplify DataStore for flutter is now available as a developer preview. Get started here

from amplify-flutter.

jamesdixon avatar jamesdixon commented on May 18, 2024

What's the local database implementation?

from amplify-flutter.

jaavant avatar jaavant commented on May 18, 2024

I noticed functions was not listed in the categories expected to be supported. Obviously it has dependent on API, but is this also being considered?

from amplify-flutter.

Ashish-Nanda avatar Ashish-Nanda commented on May 18, 2024

Hi all, we just posted this RFC regarding a refactor that could impact the way you use the library. Please take a look and let us know your feedback and opinions: #263

from amplify-flutter.

nithin-seenivasan avatar nithin-seenivasan commented on May 18, 2024

What is Datastore's current support for synchronization? Is sync control in the pipeline for flutter?

It currently syncs from client to DynamoDB table almost instantly, but the other way around (DynamoDB to Client) doesn't happen unless I clear local storage, run the query again, which pulls all data back from the cloud. Since my app users only periodically need their data from the DynamoDB table, a selective sync function (like what's available in Amplify for Android) would be much appreciated!

from amplify-flutter.

jobypthomas avatar jobypthomas commented on May 18, 2024

Any plan on adding push notification support like the firebase does with firebase_messaging that would integrate with SNS?

from amplify-flutter.

haverchuck avatar haverchuck commented on May 18, 2024

@SatyamKr07 By 'otp support', do you mean two-factor authentication, or do you mean passwordless login? If the latter, are you assuming that you'd use a custom auth flow with lambda triggers?

from amplify-flutter.

SatyamKr07 avatar SatyamKr07 commented on May 18, 2024

@SatyamKr07 By 'otp support', do you mean two-factor authentication, or do you mean passwordless login? If the latter, are you assuming that you'd use a custom auth flow with lambda triggers?

Passwordless login where user inputs phone(mobile) number, receives otp via SMS, click on verify otp, and if otp entered is correct, user is logged in. So is this possible amplify flutter plugin as I could not find any resource?

from amplify-flutter.

jobypthomas avatar jobypthomas commented on May 18, 2024

I tried to follow "https://github.com/aws-amplify/amplify-flutter" and use local clone of "amplify-flutter" instead of the pub.dev amplify_core library, but "Amplify()" class is not recognized. Am I missing anything?

from amplify-flutter.

jamesonwilliams avatar jamesonwilliams commented on May 18, 2024

I tried to follow "https://github.com/aws-amplify/amplify-flutter" and use local clone of "amplify-flutter" instead of the pub.dev amplify_core library, but "Amplify()" class is not recognized. Am I missing anything?

Some breaking changes went into mainline, recently. Please see #263 and #273.

TLDR: Amplify() doesn't get instantiated, anymore. Now, you do Amplify.configure(...), etc.

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024

@jobypthomas please see this new docs if you are running the repo's main branch to access Amplify object.

from amplify-flutter.

rlee1990 avatar rlee1990 commented on May 18, 2024

@Amplifiyer any timeline on support for GraphQL APIs?

from amplify-flutter.

rlee1990 avatar rlee1990 commented on May 18, 2024

Did not see that thanks

from amplify-flutter.

joekendal avatar joekendal commented on May 18, 2024

@Amplifiyer thanks for updating us on the subscriptions API, will this be a Dart implementation or calling the iOS and Android libraries? If so then I think we can use this for Desktop I would think.

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024

@joekendal, this will be a wrapper over iOS and Android libraries.

from amplify-flutter.

PawlikMichal25 avatar PawlikMichal25 commented on May 18, 2024

@Amplifiyer
Can you give us update about when Third-Party Sign-Ups (Google, Apple, Facebook) are gonna be implemented?
At least more or less estimation :)

from amplify-flutter.

PawlikMichal25 avatar PawlikMichal25 commented on May 18, 2024

@Amplifiyer
woah, that's great news, thanks! :)

Can you give me an estimate when Apple Sign In will be supported as well?

from amplify-flutter.

PawlikMichal25 avatar PawlikMichal25 commented on May 18, 2024

@Amplifiyer
Thanks, I followed the steps you mentioned and it mostly worked, which is great.

I just have one issue currently:

  1. I call the Amplify.Auth.signInWithWebUI();
  2. A general sign up page is displayed with all 3 party providers I'm using
  3. I choose Apple, authorise, looks like everything is successful, but:
    I end up on a blank page and nothing happens.
  4. If I click cancel on the browser and then call Amplify.Auth.signInWithWebUI(); again, then I'm automatically correctly authorised and navigated back.

So it looks like authentication worked, but just something is wrong with redirects or some callbacks?
Do you have any ideas or suggestions about what might be going wrong?

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024

Thanks @BaranMichal25 for trying this out and letting us know the issue and reproduction steps. We will try to reproduce this on our end. It will help if you can open a new issue with the same details to help us track better.

from amplify-flutter.

praharshbhatt avatar praharshbhatt commented on May 18, 2024

The only bit that we're struggling on is that the sign in method of the Amplify Flutter library requires the password (unlike the javascript library) which we don't have. On the iOS library, the docs recommend passing a dummy password to support this flow and then you'll get an Auth challenge as a response (and then you send the code). This doesn't seem to work with the Flutter library though, we just get a failure response.

Any resolution on this?
We are looking to have a passwordless auth as well, and running into the same issues as you are...

from amplify-flutter.

pierceglennie avatar pierceglennie commented on May 18, 2024

I didn't find any resolution. I'm basically waiting in the hope that it gets added to the library at some point relatively soon.

from amplify-flutter.

pierceglennie avatar pierceglennie commented on May 18, 2024

Thanks, that's good to see. I might try that out if it's not added to the official library in the next couple of months (it's not holding us back right now)

from amplify-flutter.

ShourryaGuha avatar ShourryaGuha commented on May 18, 2024

How to add Amplify endpoint to flutter app for the .apk release of the app?

I have been trying to make the .apk release of my flutter login app (which uses amplify as the backend) work but it gives out an error. The app works when I run it on an emulator or when my phone is connected to my laptop in developer mode. I have no clue where the endpoint needs to be set for the .apk release. Please help?
Below is the screenshot of the error popping up.
https://i.stack.imgur.com/DvFKo.jpg

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024

@shouza1712 please create a new bug report in this repository to track this issue. This issue is meant for gathering feedback for early amplify-flutter development only.

from amplify-flutter.

Amplifiyer avatar Amplifiyer commented on May 18, 2024

Closing this issue since Amplify for flutter is in GA.

from amplify-flutter.

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.