amplify-flutter icon indicating copy to clipboard operation
amplify-flutter copied to clipboard

Show only social sign in using Authenticator

Open sowens-csd opened this issue 2 years ago • 15 comments

I'm using Cognito for social authentication but don't want to allow the user to create their own account. They should instead use one of the configured social authentication services. I haven't been able to find a way to configure it to disable the Cognito authentication and display just the social login buttons. I know I could recreate the buttons but before I did that I wanted to check if I was missing something obvious.

sowens-csd avatar Jul 21 '23 20:07 sowens-csd

Hey @sowens-csd,

Can you provide more context of your environment?

Are you using our Authenticator project?

Equartey avatar Jul 21 '23 20:07 Equartey

Yes. I have a working Flutter app using the Authenticator widget from:

import 'package:amplify_authenticator/amplify_authenticator.dart';

That successfully displays the login form and if I select one of the social buttons the login is successful. I'd like to be able to customize the displayed form to only display the social login buttons, or have access to those buttons so I could use them on my own form.

sowens-csd avatar Jul 21 '23 20:07 sowens-csd

Hey @sowens-csd,

While we do offer methods to override the login form, reference to example. I'm not seeing an easy way to implement a view using only social sign in buttons.

This seems to be a shortcoming with the types we are exposing under the hood. I'll continue to investigate and for now will mark this as a feature request.

Equartey avatar Jul 21 '23 21:07 Equartey

Sounds good, thanks for following up. I'll implement that myself then, just wanted to make sure I wasn't missing the easy way. Would you like to leave this open to track the feature request?

sowens-csd avatar Jul 23 '23 16:07 sowens-csd

Let's leave it open to track interest.

In the meantime, the Authenticator package might be overkill if your use case is strictly Social login. If you're recreating the social buttons yourself, I would also consider removing the authenticator as a dependency.

Equartey avatar Jul 24 '23 16:07 Equartey

Hello, any updates on this? It would be very convenient to have the option to enable only social auth in the SignInForm. Or an alternate way to support the same requirement. Thanks

minerasoft avatar Dec 17 '23 11:12 minerasoft

Hi @minerasoft,

No updates at the moment, but it's good to see more interest on this issue. We will continue to monitor and update this issue as we have updates. Thanks

Equartey avatar Dec 18 '23 20:12 Equartey

Hi @Equartey it could be great to be able to have only social provider(s). Thank you

aouicher avatar Jan 30 '24 15:01 aouicher