mozilla/browserid — pull request #1535 by ozten (2012-05-03 04:55:38+00:00)
Title: Reusing checkSupport to implement delegatesAuthority in lib/primary. 

We need enhanced support in lib/certassertion.js for supporting domains that delegate their authority to another domain.

This is a blocker for the Vinz Clortho dev deployment.

To test the broken...

1) Go to http://dev.myfavoritebeer.org/
2) enter @id-dev.allizom.org
3) Note: Authentication takes you to intranet-dev.allizom.org
4) In HTTP Basic Auth dialog, enter

Username: @id-dev.allizom.org
Password:

5) Login appears to work

Expected
Assertion issued

Actual
BrowserID note that email domain doesn't match primary's domain and errors out

Dev manual testing - Use delegator.org as your email domain and setup a /etc/hosts hack to your local instance of Vinz Clortho (https://dev.clortho.mozilla.org/)

Fixes Issue#1527