[foaf-protocols] FOAF+SSL Consumer + Delegated Login System -- Just One Line of Code

Melvin Carvalho melvincarvalho at gmail.com
Thu Mar 19 13:46:47 CET 2009


This is a proof of concept.

A FOAF+SSL consumer with delegated login system, via an external
server, plus a FOAF linked data browser, using just one line of code.
Users require a valid FOAF+SSL certificate to login.

Demo: http://melvincarvalho.com/login.php

The Code:

<?php

print $_REQUEST['webid'] ? "<h1>Welcome!</h1><script
src=http://foaf-visualizer.org/embed/widget/?uri=$_REQUEST[webid]
></SCRIPT>" : "<a
href=https://foaf.me/server.php?return_to=http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]
/>Login</a>" ;

?>

Cut and paste this line of code onto your own web server and it should work.

A successful login should look something like this:

http://www.melvincarvalho.com/login.php?webid=http://bblfish.net/people/henry/card#me


More information about the foaf-protocols mailing list