From 7fc292831cfc86cf818c3fb71596ef8acb01f689 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 17 Feb 2014 18:50:24 -0800 Subject: update openid for snakebite --- library/openid/example-google.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 library/openid/example-google.php (limited to 'library/openid/example-google.php') diff --git a/library/openid/example-google.php b/library/openid/example-google.php new file mode 100644 index 000000000..f23f2cc48 --- /dev/null +++ b/library/openid/example-google.php @@ -0,0 +1,24 @@ +mode) { + if(isset($_GET['login'])) { + $openid->identity = 'https://www.google.com/accounts/o8/id'; + header('Location: ' . $openid->authUrl()); + } +?> +
+ +
+mode == 'cancel') { + echo 'User has canceled authentication!'; + } else { + echo 'User ' . ($openid->validate() ? $openid->identity . ' has ' : 'has not ') . 'logged in.'; + } +} catch(ErrorException $e) { + echo $e->getMessage(); +} -- cgit v1.2.3