W3C home > Mailing lists > Public > public-xg-webid@w3.org > January 2012

Re: Delegated WebID authentication in 3 lines of JS

From: Melvin Carvalho <melvincarvalho@gmail.com>
Date: Sat, 14 Jan 2012 17:18:19 +0100
Message-ID: <CAKaEYhJbFOcrfnovUkugZ7t07N-Mot-ECAhA7buzagLD_A4oRA@mail.gmail.com>
To: WebID XG <public-xg-webid@w3.org>
On 14 January 2012 17:15, Melvin Carvalho <melvincarvalho@gmail.com> wrote:
> Thought I'd post this little nugget:
>
> <script>
>      var script = document.createElement('script');
>      script.src = 'https://data.fm/user.js?callback=alert';
>      document.body.appendChild(script);
> </script>
>
> No need for the SAML assertion or an OAuth access token.
>
> Should work in any browser.
>
> This is one of the merits of using a RESTful architecture!

And if that's still too much here's the one line version :)

<script src="https://data.fm/user.js?callback=alert"></script>
Received on Saturday, 14 January 2012 16:19:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 14 January 2012 16:19:13 GMT