Skip to content
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

Support Google login_hint for auth [react] #8951

Open
2 tasks
revmischa opened this issue Sep 27, 2021 · 13 comments · May be fixed by #14089
Open
2 tasks

Support Google login_hint for auth [react] #8951

revmischa opened this issue Sep 27, 2021 · 13 comments · May be fixed by #14089
Labels
Auth Related to Auth components/category feature-request Request a new feature pending-maintainer-response Issue is pending a response from the Amplify team.

Comments

@revmischa
Copy link

Is this related to a new or existing framework?

React

Is this related to a new or existing API?

Authentication

Is this related to another service?

No response

Describe the feature you'd like to request

When calling Auth.federatedSignIn({ provider: CognitoHostedUIIdentityProvider.Google })} I'd like to be able to provide the login_hint parameter to Google since I know what email they should use when they accept an invite from another user.

Describe the solution you'd like

Perhaps something like upstream params that Auth0 provides https://auth0.com/docs/connections/pass-parameters-to-idps#dynamic-parameters

Describe alternatives you've considered

Auth0 https://auth0.com/docs/connections/pass-parameters-to-idps#dynamic-parameters

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@revmischa revmischa added the feature-request Request a new feature label Sep 27, 2021
@abdallahshaban557 abdallahshaban557 added UI Related to UI Components Auth Related to Auth components/category and removed UI Related to UI Components labels Jun 3, 2022
@debersonpaula
Copy link

Is there any action to include this feature?

@cwomack
Copy link
Member

cwomack commented Feb 7, 2023

Hello @revmischa and thanks for submitting this feature request. Hoping to get some clarity on what the core functionality should be after looking into the OAuth doc provided above.

Is the intent to pass in something like "login_hint" as an optional parameter to then enable additional functionality/auth flow on the social IDP side (i.e. Google Authentication)?

@cwomack
Copy link
Member

cwomack commented Feb 17, 2023

@debersonpaula, maybe you can help add some clarity about what's intended for this feature request. Could you please take a look at the above comment/question? Thanks!

@pjanaya
Copy link

pjanaya commented Feb 17, 2023

I’m also interested in this. I came across this tweet that I think explains the issue and solution pretty good:

Twitter thread

@cwomack Basically, the idea is to propose to the user which login provider and user they used last time. Apparently, it's also supported by the OAuth2 protocol. More info in the Google docs.

@cwomack
Copy link
Member

cwomack commented Feb 24, 2023

@pjanaya, appreciate the follow up and additional context! We've added this to our list of feature requests to be considered for Auth and will update this issue with any progress.

@szliuxf
Copy link

szliuxf commented Jul 11, 2023

How is this feature going? Is this only going to support google? How about other auth providers?

@cwomack
Copy link
Member

cwomack commented Aug 2, 2023

@szliuxf, we don't have any updates at this time regarding this feature request. I can updates the notes on our side to consider support for other auth providers as well. Are there any in particular you're looking for?

@dnoji
Copy link

dnoji commented Sep 22, 2023

@cwomack Any update on this one? I'm looking to do this for auth0 as well.

@natuan62
Copy link

Anything update news ? @cwomack

@huski1017
Copy link

Any update on the subject?

@Alevale
Copy link

Alevale commented Dec 16, 2024

This isn't google specific though. Most providers do support to pass in the user as login_hint so the users can log in skipping one extra step.

For some reason, this isn't supported by Amazon and it's not implemented in amplify... At least now it seems like cognito supports it (this wasn't the case some years ago)
https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html

Could we get an update on this?

@github-actions github-actions bot added the pending-maintainer-response Issue is pending a response from the Amplify team. label Dec 16, 2024
@natuan62
Copy link

natuan62 commented Dec 17, 2024

Hi @Alevale This login_hint param is working now on google login with amplify ? Thank you!

@Alevale
Copy link

Alevale commented Dec 17, 2024

Hi @Alevale This login_hint param is working now on google login with amplify ? Thank you!

@natuan62 As far as I see in the implementation I don't find any particular difference when it comes to Google or other providers, and since it's not implemented in the amplify library for any provider I would assume it's also not for google

Alevale added a commit to Alevale/amplify-js that referenced this issue Dec 18, 2024
Alevale added a commit to Alevale/amplify-js that referenced this issue Dec 18, 2024
Alevale added a commit to Alevale/amplify-js that referenced this issue Dec 18, 2024
Alevale added a commit to Alevale/amplify-js that referenced this issue Dec 18, 2024
Alevale added a commit to Alevale/amplify-js that referenced this issue Dec 18, 2024
Alevale added a commit to Alevale/amplify-js that referenced this issue Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auth Related to Auth components/category feature-request Request a new feature pending-maintainer-response Issue is pending a response from the Amplify team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants