Metaswitch/sprout — pull request #37 by bossmc (2013-05-24 04:41:14+00:00)
Title: Check AoR for authentication on paths.

This causes Bono to keep track of the AoRs that have successfully registered for a given Path.

It will only treat a request as authenticated (and therefore add `integrity_protected=yes`) if the `From:` header of the request matches a previously authenticated AoR. I think it should be looking at `P-Asserted-ID` headers too (in fact, I think Bono should be rejecting requests that don't have a `P-Asserted-ID` header, but I'm not sure about that).

It currently gets the AoR of the REGISTER from the `From:` header of the REGISTER response, it should also pick up and `P-Associated-ID` headers.

I've tested this with the live test framework (after removing the `false` from all the `callee.register(false)` lines) and everything is passing. I've also run the sprout UTs and (apart from one of your heisen-failures) they are all passing.