diff options
author | cash <cash.costello@gmail.com> | 2011-12-17 12:43:35 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-17 12:43:35 -0500 |
commit | a62adbd9cb180fe6bbf88cff2f787d262f737ecb (patch) | |
tree | 9ecc324eba4dcdf57f98cde1bcc66e03c148b027 /pages/sso.php | |
parent | bc56428d493d99576ff274611df3b029e7e47e0a (diff) | |
download | elgg-a62adbd9cb180fe6bbf88cff2f787d262f737ecb.tar.gz elgg-a62adbd9cb180fe6bbf88cff2f787d262f737ecb.tar.bz2 |
removed code from previous plugin
Diffstat (limited to 'pages/sso.php')
-rw-r--r-- | pages/sso.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/pages/sso.php b/pages/sso.php deleted file mode 100644 index a0098ce72..000000000 --- a/pages/sso.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php
-require_once(dirname(dirname(__FILE__)).'/models/model.php');
-global $CONFIG;
-
-$sso = get_plugin_setting('sso','openid_client');
-if (!isloggedin() && ($sso == 'yes')) {
- openid_client_handle_login();
-} else {
- forward();
-}
-exit;
-// $url = $CONFIG->wwwroot.'action/openid_client/login';
-// $ts = time();
-// $token = generate_action_token($ts);
-// $fields = array(
-// '__elgg_token'=>$token,
-// '__elgg_ts'=>$ts,
-// 'passthru_url'=>'',
-// 'externalservice'=>'',
-// 'username'=>urlencode($openid_url),
-// );
-//
-// //url-ify the data for the POST
-// foreach($fields as $key=>$value) {
-// $fields_string .= $key.'='.$value.'&';
-// }
-// rtrim($fields_string,'&');
-//
-// //open connection
-// $ch = curl_init();
-//
-// //set the url, number of POST vars, POST data
-// curl_setopt($ch,CURLOPT_URL,$url);
-// //curl_setopt($ch,CURLOPT_POST,count($fields));
-// curl_setopt($ch,CURLOPT_POST,true);
-// curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
-// curl_setopt($ch,CURLOPT_RETURNTRANSFER,false);
-// curl_setopt($ch,CURLOPT_FAILONERROR,true);
-// //curl_setopt($ch,CURLOPT_HEADER, true);
-// curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
-//
-// //execute post
-// curl_exec($ch);
-//
-// //print_r (curl_getinfo($ch));
-//
-// //print $result;
-//
-// //close connection
-// curl_close($ch);
-
-?>
\ No newline at end of file |