W3C home > Mailing lists > Public > public-webid@w3.org > December 2013

Re: Looking for a JSON WebID service

From: Melvin Carvalho <melvincarvalho@gmail.com>
Date: Sun, 22 Dec 2013 09:57:53 +0100
Message-ID: <CAKaEYhLLYHMKfO7SW-75J_hQuiFTa66vvBkJYb747+HiOj7V+A@mail.gmail.com>
To: Sébastien Lorber <sebastien@stample.co>
Cc: Andrei Sambra <andrei.sambra@gmail.com>, Kingsley Idehen <kidehen@openlinksw.com>, public-webid <public-webid@w3.org>
On 19 December 2013 14:56, Sébastien Lorber <sebastien@stample.co> wrote:

> Hello,
>
> Check the Andrei implementation here on ld-cal exemple app:
> https://github.com/rww-apps/ld-cal/blob/master/js/ld-cal.js#L501
>
> Its server gives you the authenticated user corresponding to the X509
> certificate. It is the webid URI in the User response header.
>
> As the ld-cal app is supposed to run on a rww.io created subdomain (ie
> xxx.rww.io), you can see here:
> https://github.com/rww-apps/ld-cal/blob/master/index.html#L139
>
> $(document).ready(function() {
>         authenticate('/');
>
>     });
>
> So it means you can authenticate using this code against an URI like https://xxx.rww.io
>
>
Thanks!  Will give this a try today ...


> And it gives you the authenticated WebId.
> Then you can just fetch the webId and extract useful data. No need for JSON API.
>
> I guess it would be nice if we could have a global service that just handle that TLS authentication so that we can easily contextualize our JS apps.
>
> It would be a single point of failure and en centralized auth but will permit to ease the development until better integration of webid in browsers I guess
>
>
> We could do that because we will also need it, Henry what do you think?
>
>
>
>
> On Thu, Dec 19, 2013 at 11:09 AM, Melvin Carvalho <
> melvincarvalho@gmail.com> wrote:
>
>>
>>
>>
>> On 19 December 2013 10:30, Andrei Sambra <andrei.sambra@gmail.com> wrote:
>>
>>> Hi Melvin,
>>>
>>> On Wed, Dec 18, 2013 at 10:53 PM, Melvin Carvalho <
>>> melvincarvalho@gmail.com> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On 18 December 2013 22:41, Kingsley Idehen <kidehen@openlinksw.com>wrote:
>>>>
>>>>> On 12/18/13 4:00 PM, Melvin Carvalho wrote:
>>>>>
>>>>>> You fire an ajax request for a given WebID
>>>>>>
>>>>>> It brings back
>>>>>>
>>>>>> Name
>>>>>> Avatar
>>>>>> List of Friends
>>>>>>
>>>>>> Does anyone have one already done?
>>>>>>
>>>>>
>>> Both rww.io and data.fm do that already, though they do not limit the
>>> returned data to just name, avatar and friends.
>>>
>>
>> Do you have a pointer?
>>
>>
>>>
>>>   -- Andrei
>>>
>>>
>>>>
>>>>> You mean FOAF graph in JSON representation, following URI de-reference?
>>>>>
>>>>
>>>> Two use cases:
>>>>
>>>> 1) In a client side app with an x.509 cert I would like to know
>>>> name,avatar,friends to personalize a page
>>>>
>>>> 2) In a client side app with a given WebID, I would like to know
>>>> name,avatar,friends to personalize a page
>>>>
>>>> In both cases, I'd ideally like to send an ajax request from a browser
>>>> and get back some JSON
>>>>
>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Regards,
>>>>>
>>>>> Kingsley Idehen
>>>>> Founder & CEO
>>>>> OpenLink Software
>>>>> Company Web: http://www.openlinksw.com
>>>>> Personal Weblog: http://www.openlinksw.com/blog/~kidehen
>>>>> Twitter Profile: https://twitter.com/kidehen
>>>>> Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
>>>>> LinkedIn Profile: http://www.linkedin.com/in/kidehen
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
Received on Sunday, 22 December 2013 08:58:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:05:52 UTC