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

Delegated WebID authentication in 3 lines of JS

From: Melvin Carvalho <melvincarvalho@gmail.com>
Date: Sat, 14 Jan 2012 17:15:31 +0100
Message-ID: <CAKaEYhJjht-hjeZrWJmAem=dJaMp95UdamWG5-xc3KcPHaYt9w@mail.gmail.com>
To: WebID XG <public-xg-webid@w3.org>
Thought I'd post this little nugget:

      var script = document.createElement('script');
      script.src = 'https://data.fm/user.js?callback=alert';

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!
Received on Saturday, 14 January 2012 16:16:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:39:54 UTC