Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@grokys
Copy link
Contributor

@grokys grokys commented May 20, 2016

Fixes #309. Observable.Amb "emits all of the items from only the firstof these Observables to emit an item or notification". This means that if the user tries to login first to .com with an invalid login, then
tries to login to enterprise with a valid login the login from enterprise will be ignored because the .com observable fired first.Instead use Observable.Merge which will emit authentication results from both in any order.

Fixes #309. `Observable.Amb` "emits all of the items from only the first
of these Observables to emit an item or notification". This means that
if the user tries to login first to .com with an invalid login, then
tries to login to enterprise with a valid login the login from
enterprise will be ignored because the .com observable fired first.
Instead use `Observable.Merge` which will emit authentication results
from both in any order.
@shana
Copy link
Contributor

shana commented May 20, 2016

Can we put together a test for this somehow?

@grokys
Copy link
Contributor Author

grokys commented May 20, 2016

Hmm yeah, we should I guess! Will work on it.

Confirmed that the unit test fails on master but passes with the fix.
@grokys
Copy link
Contributor Author

grokys commented May 20, 2016

Added a unit test.

@shana
Copy link
Contributor

shana commented May 20, 2016

😻

@shana shana merged commit b028aa6 into master May 20, 2016
@shana shana deleted the fixes/309-login-com-enterprise-order branch May 20, 2016 16:46
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.

5 participants