Skip to content

Fixes firebaseui.auth.idp.getAuthCredential credential initializer wh… #125

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

Merged
merged 2 commits into from
Apr 5, 2017

Conversation

bojeil-google
Copy link
Contributor

Fixes firebaseui.auth.idp.getAuthCredential credential initializer which was breaking account linking flow.

Added login_hint to Google OAuth flow when the email is specified.
This is applied in the following 2 cases:

  1. Account linking is triggered and the user needs to sign in to existing Google account.
    To force the user to sign in to the expected Google account, we pass the login hint with the email.
  2. If a user selects email login and the Google account already exists for that email,
    when clicking continue to sign in with Google account, we pass the login_hint for that account.

…ich was

breaking account linking flow.

Added login_hint to Google OAuth flow when the email is specified.
This is applied in the following 2 cases:
1. Account linking is triggered and the user needs to sign in to existing Google account.
To force the user to sign in to the expected Google account, we pass the login hint with the email.
2. If a user selects email login and the Google account already exists for that email,
when clicking continue to sign in with Google account, we pass the login_hint for that account.
@@ -66,9 +66,18 @@ firebaseui.auth.idp.getAuthCredential = function(credentialObject) {
if (credentialObject['secret'] && credentialObject['accessToken']) {
credentialObject['oauthToken'] = credentialObject['accessToken'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need these lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we don't. I will remove them in my next PR.

@bojeil-google bojeil-google merged commit 95b6f4d into master Apr 5, 2017
wti806 pushed a commit that referenced this pull request Feb 27, 2018
…ich was (#125)

breaking account linking flow.

Added login_hint to Google OAuth flow when the email is specified.
This is applied in the following 2 cases:
1. Account linking is triggered and the user needs to sign in to existing Google account.
To force the user to sign in to the expected Google account, we pass the login hint with the email.
2. If a user selects email login and the Google account already exists for that email,
when clicking continue to sign in with Google account, we pass the login_hint for that account.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants