question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ericclemmonscommented, Apr 3, 2020

@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"}):

https://aws-amplify.github.io/docs/js/authentication#oauth-and-hosted-ui

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!

0reactions
ericclemmonscommented, Nov 5, 2021

A couple improvements resolve this issue for our @next release:

  1. Social providers use Cognito User Pools by default (via Auth.federatedSignIn), since this is the default social configuration from Admin UI & the CLI.

    Screen Shot 2021-11-05 at 11 40 34 AMhttps://ui.docs.amplify.aws/ui/components/authenticator?platform=react#loginmechanisms

  2. Zero-config support from #626 will make <Authenticator> automatically show the correct login mechanisms (including Google, in your case) without any additional configuration.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found