Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created April 9, 2010 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvincarvalho/361306 to your computer and use it in GitHub Desktop.
Save melvincarvalho/361306 to your computer and use it in GitHub Desktop.
git clone git://github.com/melvincarvalho/libAuthentication.git
cat > index.php
<?php
require_once('libAuthentication/lib/Authentication.php');
$auth = new Authentication_FoafSSLDelegate();
if (!$auth->isAuthenticated()) { ?>
<a href="https://foafssl.org/srv/idp?authreqissuer=http://localhost/index.php">Click here to Login</a>
<?php } else { ?>
Your have succesfully logged in.
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment