On 12/15/10 2:13 AM, Andrea Messina wrote:
[snip]
How could i locate the public key contained in the user XRD file??
I guess i should run a discovery process using
"http://TEST.status.net/user/1" or the alternate link of the person
object-type "http://TEST.status.net/TEST" !!! But how??? should i
identify some particular link element??
Or just transform the uri in a properly webfinger identifier??
You can see our implementation in the MagicEnvelope class; from the
verify() method we get the info via methods that:
* get the URI of the author (/entry/author/uri)
* run XRD discovery (via Discovery)
- via WebFinger if it's an acct: URI
- via HTTP Link header or <link> element if it's http: or https:
The 'magic-public-key' entry gets pulled out and fetched. (At least in
our case it's an inline data: URL, I'm not sure if that's require by
spec or not offhand).
-- brion
_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev