-
Notifications
You must be signed in to change notification settings - Fork 265
Pre release testing (ensuring we don't break RPs)
(from bug 4078)
Testing Marketplace is tricky because, though they do have a staging setup that connects to persona staging (https://identity-stage-marketplace.allizom.org/), it's not always up, so you may have to/want to test against production.
For future reference, here's a simplified way to test Persona staging against production Marketplace.
-
Create a new Firefox profile.
- Set
network.stricttransportsecurity.preloadlist
tofalse
in about:config - Disable popup blocking
- Set
-
Edit
/etc/hosts
to point static.login.persona.org and login.persona.org to a Staging IP address -
Visit https://login.persona.org/ver.txt to ensure you're hitting Staging, and accept the self-signed SSL cert
-
Visit https://login.persona.org/ to make sure everything loads correctly
-
Visit https://marketplace.firefox.com, open the JavaScript Console, and execute:
navigator.id.request({experimental_forceIssuer: 'login.anosrep.org'})
-
Attempt to log in with
<something>@mockmyid.com
and<something>@mailinator.com
. Both inboxes can be checked athttps://<something>.mailinator.com
Expected Results:
-
You should be prompted to create a password.
-
You should be required to check a confirmation link sent via email for both the Mailinator and the MockMyId accounts.
-
The Persona window should successfully close itself, but you should not get logged into Marketplace.
Expected Issues:
-
Clicking the "Sign in / Sign up" button on the Marketplace homepage will not work.
The Persona popup will show an error right before sending a backed identity assertion. This is because Marketplace sets the issuer to 'login.persona.org', which Stage does not recognize as itself. As a result, /wsapi/cert_key will fail and the popup will display an error.
-
Using
navigator.id.request
will not actually result in a successful login, though it will successfully attempt to log in.This is because Marketplace's backend doesn't have your same
/etc/host
hacks, and it will try to verify your identity certificate with production Persona.