Can amplify-authenticator render hosted UI for federated logins?
See original GitHub issue** Which Category is your question related to? ** Auth
** What AWS Services are you utilizing? ** Cognito
** Provide additional details e.g. code snippets **
$ amplify --version
4.17.2
I have a cognito user pool with only google as an Identity provider. When I addd <amplify-authenticator></amplify-authenticator>
to my angular component, it renders a username/password form.
Can amplify-authenticator show a “Login with google” button? or maybe render the hosted-UI? Or should I be looking to implement that myself?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5 (2 by maintainers)
Top Results From Across the Web
The Complete Guide to User Authentication with the Amplify ...
This function will render the Hosted UI that will give users the option to sign up & sign in with Facebook, Google, or...
Read more >Authenticator - React Native - AWS Amplify Docs
withAuthenticator component renders your App component after a successful user signed in, and it prevents non-sign-in users to interact with your app. In...
Read more >How to use Amplify for implicit federated oauth w/ cognito ...
I want to use the feature federation of a user pool NOT an identity pool; I do NOT want to use this feature...
Read more >Using the Amazon Cognito hosted UI for sign-up and sign-in
You can display a pre-built hosted UI, or you can federate users through an OAuth 2.0 endpoint that redirects to a social sign-in...
Read more >Next.js + AWS Amplify: How to Add Authentication to Next.js
Next.js is a framework that combines client-side rendering with pre-rendered HTML in the form of static and server-rendered pages. You can ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@foragerr If you’re using User Pools then you may better served by a custom “Login with Google” button and calling
Auth.federatedSignIn({ provider: "Google"})
:Currently, our
<amplify-authenticator>
supports Identity Pools’ configuration, but we’re actively investigating supporting both User Pools & Identity Pools without breaking backwards compatibility.I’m going to update the labels for this accordingly as a feature request so we don’t lose track!
A couple improvements resolve this issue for our
@next
release:Social providers use Cognito User Pools by default (via
Auth.federatedSignIn
), since this is the default social configuration from Admin UI & the CLI.Zero-config support from #626 will make
<Authenticator>
automatically show the correct login mechanisms (including Google, in your case) without any additional configuration.