Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Handle FxA sign in from email (bug 1080868)#714

Merged
mstriemer merged 2 commits intomozilla:masterfrom
mstriemer:login-from-email-1080868
Oct 15, 2014
Merged

Handle FxA sign in from email (bug 1080868)#714
mstriemer merged 2 commits intomozilla:masterfrom
mstriemer:login-from-email-1080868

Conversation

@mstriemer
Copy link
Copy Markdown
Contributor

https://bugzilla.mozilla.org/show_bug.cgi?id=1080868

Reuse the window that was used for FxA sign in if there is no window.opener. This enables sign in when the user navigates to FxA from one of our pre-verified emails.

See also mozilla/zamboni#2652.

Comment thread src/media/js/views/fxa_authorize.js Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just use window.location.href

@mstriemer
Copy link
Copy Markdown
Contributor Author

@cvan How's this look?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems fickle, but this should work for every Marketplace except -altdev.

@cvan
Copy link
Copy Markdown
Contributor

cvan commented Oct 14, 2014

I'm not sure I'm the best one to review this, since I barely understand how FxA works. @washort?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we pass to FxA the URL of this page - so they redirect users here upon clicking that button in the confirmation email?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This URL is included in the OAuth provider config, for example: https://github.com/mozilla/fxa-dev/blob/master/roles/oauth/templates/config.json.j2

There have been discussions of changing what's presented to the user upon email confirmation, but currently it does show that url.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

whoa, I wasn't expecting that to be hardcoded in FxA. maybe I'm misunderstanding things, or I'm living under a rock, but won't all this special casing make FxA difficult/impossible to implement by other folks. Persona, in comparison, seems to be more developer-friendly.

@mstriemer
Copy link
Copy Markdown
Contributor Author

@cvan @washort I need to get this in so I can move on. I'm assuming anything glaring would have been brought up. If you have any comments post them in here and I'll address them after.

mstriemer added a commit that referenced this pull request Oct 15, 2014
Handle FxA sign in from email (bug 1080868)
@mstriemer mstriemer merged commit 1fa29f5 into mozilla:master Oct 15, 2014
@mstriemer mstriemer deleted the login-from-email-1080868 branch October 15, 2014 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants