-
Notifications
You must be signed in to change notification settings - Fork 120
feat(brokers): Add brokers for mob_android_v1
and mob_ios_v1
#5084
Conversation
e1d8d25
to
41c70b6
Compare
308428a
to
7d75dec
Compare
569a01c
to
a8142d4
Compare
mob_android_v1
and mob_ios_v1
mob_android_v1
and mob_ios_v1
return broker.afterSignInConfirmationPoll(account) | ||
.then((result) => { | ||
assert.isTrue(channelMock.send.calledOnce); | ||
assert.isTrue(channelMock.send.calledWith('email_verified')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure login data is sent too.
return broker.afterSignUpConfirmationPoll(account) | ||
.then((result) => { | ||
assert.isTrue(channelMock.send.calledOnce); | ||
assert.isTrue(channelMock.send.calledWith('email_verified')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure login data is sent too.
b84b7ad
to
e00f8da
Compare
@@ -40,7 +41,9 @@ define(function (require, exports, module) { | |||
commands: null, | |||
|
|||
defaultCapabilities: _.extend({}, proto.defaultCapabilities, { | |||
sendChangePasswordNotice: true | |||
sendAfterSignInConfirmationPollNotice: false, | |||
sendAfterSignUpConfirmationPollNotice: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A spot of bike-shedding here with my "ubiquitous language" hat on:
I thought we named sign-in confirmation to differentiate it from the email verification step that happens after sign-up. Are we calling them both "confirmation" everywhere now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is the semantics of the content server. "Confirm" occurs in the tab the user initiated the action. "verify" occurs in the verification tab.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above comment is not to mean that the semantics the content server uses are not totally messed up and confusing. The are both. I'd love help renaming these methods/concepts internally, every person that comes into the project is confused by the names & corresponding URL scheme.
.then((behavior) => { | ||
if (this.hasCapability('sendAfterSignInConfirmationPollNotice')) { | ||
const loginData = this._getLoginData(account); | ||
return this.send(this.getCommand('EMAIL_VERIFIED'), loginData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once upon a time we had plans to replace the current sign-in confirmation flow with other approaches, Google Authenticator etc. Would this command name seem weird if/when that happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once upon a time we had plans to replace the current sign-in confirmation flow with other approaches, Google Authenticator etc. Would this command name seem weird if/when that happens?
Possibly. We could just call it "VERIFIED" and ignore the verification method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulling over the comment from the issue:
@mcomella - if we changed the WebChannel message from fxaccounts:email_verified
to fxaccounts:verified
, would that cause havoc for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcomella says "@shane-tomlinson Nope! Go for it."
LGTM! r+ |
* Add lots of unit and functional tests. * Add docs.
To force signin confirmation, the email needs a `sync` prefix.
e00f8da
to
45fe4e5
Compare
fixes #5029