Closed Bug 834879 Opened 10 years ago Closed 10 years ago

Skip the identityFlow during a second purchase (auto login)

Categories

(Marketplace Graveyard :: Payments/Refunds, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME
2013-01-31

People

(Reporter: krupa.mozbugs, Assigned: kumar)

References

Details

(Whiteboard: u=dev p=)

steps to reproduce:
1. Launch marketplace-dev on your unagi phone
2. Search for Private yacht
3. click on the purchase button
4. Sign in and complete the purchase
5. Search for another paid app
6. Click the purchase button


expected behavior:
Step #6 will open the 'Enter your PIN' in the trusted UI.

observed behavior:
Step #6 opens the identityflow (with the email preselected)
This was a regression from when we added the forceIssuer call. Fixed https://github.com/mozilla/webpay/commit/26d5513148c78c0994003d9b8cf55c8c5d21f50b
Assignee: nobody → kumar.mcmillan
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
oops, I forgot that b2g2pac is the only whitelisted force issuer. I put it back.

After step #6, nav.id.watch() used to automatically log us in but that no longer works.

jedp, ozten: Any ideas here? we are doing this: https://github.com/mozilla/zamboni/blob/master/media/js/mkt/login.js 

Also, the same behavior happens on the separate webpay server, which is doing 5this https://github.com/mozilla/webpay/blob/master/media/js/pay/pay.js 

both have forceIssuer: "b2g2pac.personatest.org"

I stated noticing this bug today. Did anything change? It might have happened earlier.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Skip the identityFlow during a second purchase → Skip the identityFlow during a second purchase (auto login)
To clarify: when I remove forceIssuer from nav.id.request() then this bug goes away
I don't think anything has changed recently server side.
There haven't been any server-side changes for native-persona.org, no.

I will try to reproduce this, but I need to know what to do when I get to the part of the payment flow that asks me to confirm my mobile number.  I'm using an unagi dev phone with no sim card.

In the mean time, to see what's going on with persona, you can set the pref toolkit.identity.debug to true, and adb lolcat.  (It's a bit redundant - the logs get printed for both Gecko and GeckoConsole for some reason.)
Flags: needinfo?(kumar.mcmillan)
krupa pointed out that i can cancel the flow at this point and just jump to purchase a different paid app.

I did that and followed the logcat, and I am actually being logged in automatically.  I get prompted for my PIN right away.

So ... yay?  I think this is the desired behavior?
Whiteboard: u=dev p=
Target Milestone: --- → 2013-01-31
Well, huh. It is working now on the -dev server so I'll close it. However, it still happens on my localhost. Maybe something in the URL bar is tripping up identity. Either way, if it works on dev I'm not too worried about it.
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Flags: needinfo?(kumar.mcmillan)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.