HI.

When someone starts to follow me, i receive an http POST to my Salmon
endpoint containing a signed Atom entry like this:

<?xml version="1.0" encoding="UTF-8" ?><entry xmlns="
http://www.w3.org/2005/Atom"; xmlns:activity="
http://activitystrea.ms/spec/1.0/"; xmlns:georss="
http://www.georss.org/georss"; xmlns:ostatus="http://ostatus.org/schema/1.0";
xmlns:poco="http://portablecontacts.net/spec/1.0"; xmlns:media="
http://purl.org/syndication/atommedia";>
 <id>tag:TEST.status.net
,2010-12-14:follow:1:3:2010-12-14T23:45:33+00:00</id>
 <title>Follow</title>
 <published>2010-12-14T23:45:33+00:00</published>
 <content type="html">TEST is now following ME.</content>
 <author>
  <uri>http://TEST.status.net/user/1</uri>
  <name>Jhon</name>
</author>
<activity:actor>
 <activity:object-type>http://activitystrea.ms/schema/1.0/person
</activity:object-type>
 <id>http://TEST.status.net/user/1</id>
 <title>Jhon</title>
 <link rel="alternate" type="text/html" href="http://TEST.status.net/TEST
"/>
 <link rel="avatar" type="image/png" media:width="96" media:height="96"
href="http://theme.status.net/0.9.6/default/default-avatar-profile.png"/>
 <link rel="avatar" type="image/png" media:width="48" media:height="48"
href="http://theme.status.net/0.9.6/default/default-avatar-stream.png"/>
 <link rel="avatar" type="image/png" media:width="24" media:height="24"
href="http://theme.status.net/0.9.6/default/default-avatar-mini.png"/>
<poco:preferredUsername>TEST</poco:preferredUsername>
<poco:displayName>Jhon</poco:displayName>
</activity:actor>
 <activity:verb>http://activitystrea.ms/schema/1.0/follow</activity:verb>
<activity:object>
 <activity:object-type>http://activitystrea.ms/schema/1.0/person
</activity:object-type>
 <id>http://ME</id>
 <title>ME</title>
 <link rel="alternate" type="text/html" href="http://ME"/>
 <link rel="avatar" type="image/jpeg" media:width="200" media:height="150"
href="http://avatar.status.net/i/TEST/3-original-20101214234454.jpeg"/>
 <link rel="avatar" type="image/jpeg" media:width="96" media:height="96"
href="http://avatar.status.net/i/TEST/3-96-20101214234454.jpeg"/>
 <link rel="avatar" type="image/jpeg" media:width="48" media:height="48"
href="http://avatar.status.net/i/TEST/3-48-20101214234454.jpeg"/>
 <link rel="avatar" type="image/jpeg" media:width="24" media:height="24"
href="http://avatar.status.net/i/TEST/3-24-20101214234454.jpeg"/>
<poco:preferredUsername>NICKNAME</poco:preferredUsername>
<poco:displayName>FULL NAME</poco:displayName>
</activity:object>
</entry>


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??

Thanks.
-- 
*Politecnico di Torino*
*Andrea Messina*
_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to