-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication with User Pool and social provider #1521
Comments
@itaied246 the identityPoolId comes from Cognito Federated Identities service. If you use the aws-amplify/amplify-cli you can just |
@mlabieniec In our instance, and I believe in @itaied246 as well... we're trying to use AWS Amplify with our React Native app in order to sign users in with Facebook / Google... BUT... into the User Pools. We've followed this guide And it works with that suggested URL at the bottom of the guide.... the facebook login with that URL goes to the User Pool. However, when we implemented Is there a way to set up our login so that the Facebook (and Google) sign in can go through the User Pool? Even if it means not using AWS Amplify (although we'd love to, if possible). Since |
Anyone? |
@keitzer @itaied246 if you want to sign in to the Cognito User Pool with federated providers, you should use Cognito Hosted UI: https://aws-amplify.github.io/amplify-js/media/authentication_guide.html#configuring-the-hosted-ui Also #1143 may help you to make it work in React Native. |
But that's the point, I don't want to use the hosted UI... |
@itaied246 maybe you can try this: #1316 (comment) |
Ok thanks, I'll try it. |
@itaied246 good point. I will update this in our doc. |
@powerful23 is there a way to federate with I see this question pops up a lot, in the gitter and in other issues. |
@itaied246 yeah for now the only way to get federated with Cognito User Pool is through Cognito Hosted UI. The Cognito Service team is currently working on to provide another way to do that without Hosted UI and once they are done(the similar way like |
@powerful23 is there any timeline on when that would be completed? |
@powerful23 do you have any updates on this issue? |
you can federated directly against the social provider in your user pool via constructing a link documented in the docs: see the code snippet there. You can use that link will go directly to the hosted uI, which will transparently redirect to the social provider, and then back to your application, by-passing the hosted ui all together. |
@mlabieniec We’re looking for a solution that allows developers to use a custom UI, not the hosted one with redirects. This is mostly because the hosted one provides a clunky experience. Can you please reopen this? |
Ok got it will mark as feature request |
Would it be possible to provide Amplify with the attributes it needs to create the user pool user manually and then use https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html to associate that user pool user with a federated user? I guess the answer is probably yes so the more important question is, if that is done, will Amplify be able to pick up on that link next time you sign in? |
Any updates on this new feature? |
We've been using the solution shown by @powerful23 here to add a custom Facebook Login button to our registration page. We also have normal Cognito user pool login with custom UI and I'm working on adding Google now. As far as I can tell this solution is the only way to get a Facebook button working with Custom UI and User Pool only (IE - not Federated Identity Pool). But maybe I'm missing something. |
Hello everyone, we have created an RFC for feature work that should make the challenges found in this issue easier in the future. If you have a moment please read through the details and add any comments: #2716 Your feedback in the RFC will help us ensure that we are delivering the best experience possible. Thank you. |
Hello everyone, in addition to the above RFC we have also now released React Native support for the Hosted UI which includes an HOC which allows you to build out UI components in your app: https://aws-amplify.github.io/docs/js/authentication#launching-the-hosted-ui-in-react-native |
I am going to close this issue. Please let us know if you have further concern. |
Can this be done on native app clients (iOS and Android?) |
@powerful23 I think this thread is asking for using custom UI? |
As of the implementation of #2716 you can call |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
As
cognito
docs states, one can authenticate with 3rd party providers (like Facebook) using only theuser pool
.From
amplify
authentication docs, I followed this example, but it requires theidentityPoolId
.So, how can I authenticate a user on a custom UI with a 3rd party providers using only the user pool?
The text was updated successfully, but these errors were encountered: