Closed
Bug 811014
Opened 13 years ago
Closed 13 years ago
Support for disabled primaries (forced issuer)
Categories
(Cloud Services :: Server: Identity, defect)
Tracking
(firefox18 fixed, firefox19 fixed)
RESOLVED
FIXED
mozilla19
People
(Reporter: ozten, Assigned: jedp)
References
Details
Attachments
(1 file, 2 obsolete files)
|
4.58 KB,
patch
|
benadida
:
review+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
We're adding an issuer parameter to navigator.id.request in Bug#794634 Comment#9.
It is a string parameter which is the hostname. When present, the UA should not attempt discovery on the primary or persona secondary. Instead it should try to issue assertions from the specified issuer.
Task break down is a little fuzzy, but for now definitely:
1) Ensure the value flows through via postMessage API
2) Limits callers to Marketplace via whitelist
| Reporter | ||
Comment 1•13 years ago
|
||
Ben wants to remove #2.
| Assignee | ||
Comment 2•13 years ago
|
||
Marking this as dependent on Bug 811812 because the separate patches must be applied in order
Depends on: 811012
| Assignee | ||
Comment 3•13 years ago
|
||
To force the issuer, this may be sufficient as the gecko patch.
Attachment #680966 -
Flags: feedback?(benadida)
| Assignee | ||
Comment 4•13 years ago
|
||
To clarify my patch a little: It is just tests to confirm that the parameter is passed along. I think Bug 804932, "pass arbitrary options." actually implements the feature; this is just to test that it works for this parameter.
Comment 5•13 years ago
|
||
Comment on attachment 680966 [details] [diff] [review]
pass an 'issuer' parameter from the RP to the shim
Review of attachment 680966 [details] [diff] [review]:
-----------------------------------------------------------------
love the test-focused stuff.
::: toolkit/identity/tests/unit/test_minimalidentity.js
@@ +95,5 @@
> + run_next_test();
> + });
> +
> + MinimalIDService.RP.watch(mockedDoc);
> + MinimalIDService.RP.request(mockedDoc.id, {issuer: "https://jed.gov"});
wait, you're a government entity now? I better watch my review.
::: toolkit/identity/tests/unit/test_relying_party.js
@@ +186,5 @@
> +
> + RelyingParty.watch(mockedDoc);
> +
> + makeObserver("identity-request", function(aSubject, aTopic, aData) {
> + dump("teh obj is " + JSON.stringify(aSubject.wrappedJSObject) + "\n");
I suppose you should fix that typo: "teh" --> "the"
Attachment #680966 -
Flags: feedback?(benadida) → feedback+
| Assignee | ||
Comment 6•13 years ago
|
||
(In reply to Ben Adida [:benadida] from comment #5)
> Comment on attachment 680966 [details] [diff] [review]
> pass an 'issuer' parameter from the RP to the shim
>
> Review of attachment 680966 [details] [diff] [review]:
> I suppose you should fix that typo: "teh" --> "the"
Now we see which spelling I use more often ...
| Assignee | ||
Comment 7•13 years ago
|
||
(In reply to Ben Adida [:benadida] from comment #5)
> Comment on attachment 680966 [details] [diff] [review]
> pass an 'issuer' parameter from the RP to the shim
>
> Review of attachment 680966 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> love the test-focused stuff.
Yes, the forward-compatible arbitrary params takes care of all this. Just making sure it doesn't break in the future.
> ::: toolkit/identity/tests/unit/test_minimalidentity.js
> @@ +95,5 @@
> > + run_next_test();
> > + });
> > +
> > + MinimalIDService.RP.watch(mockedDoc);
> > + MinimalIDService.RP.request(mockedDoc.id, {issuer: "https://jed.gov"});
>
> wait, you're a government entity now? I better watch my review.
malloc(4 * sizeof(year_t))
> ::: toolkit/identity/tests/unit/test_relying_party.js
> @@ +186,5 @@
> > +
> > + RelyingParty.watch(mockedDoc);
> > +
> > + makeObserver("identity-request", function(aSubject, aTopic, aData) {
> > + dump("teh obj is " + JSON.stringify(aSubject.wrappedJSObject) + "\n");
>
> I suppose you should fix that typo: "teh" --> "the"
The whole debug statement can go.
| Assignee | ||
Comment 8•13 years ago
|
||
Addresses Ben's comments.
Checkin must wait until Bug 804932 passes review.
Comment 9•13 years ago
|
||
This has f+ but no r+?
| Assignee | ||
Comment 10•13 years ago
|
||
I'll resubmit the patch anyway; it's missing username and comment
| Assignee | ||
Comment 11•13 years ago
|
||
Attachment #680966 -
Attachment is obsolete: true
Attachment #681288 -
Attachment is obsolete: true
Attachment #682779 -
Flags: review?(benadida)
Updated•13 years ago
|
Attachment #682779 -
Flags: review?(benadida) → review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 12•13 years ago
|
||
Assignee: nobody → jparsons
Keywords: checkin-needed
Comment 13•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
| Assignee | ||
Comment 14•13 years ago
|
||
This needs a bb+ for the patch to be uplifted to beta
Blocks: basecamp-id
blocking-basecamp: --- → ?
| Assignee | ||
Updated•13 years ago
|
blocking-basecamp: ? → ---
| Assignee | ||
Comment 15•13 years ago
|
||
Comment on attachment 682779 [details] [diff] [review]
ensure forceIssuer parameter is passed through
[Approval Request Comment]
Bug caused by (feature/regressing bug #): feature; these are unit tests
User impact if declined: native identity will not be fully tested
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): none
String or UUID changes made by this patch: none
Attachment #682779 -
Flags: approval-mozilla-beta?
| Assignee | ||
Comment 16•13 years ago
|
||
(In reply to Jed Parsons [:jparsons] from comment #14)
> This needs a bb+ for the patch to be uplifted to beta
Sorry, no it doesn't. Requested beta approval per jsmith's suggestion.
Updated•13 years ago
|
Attachment #682779 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 17•13 years ago
|
||
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•