aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Magic.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-10 09:30:59 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-10 09:30:59 +0200
commit2f76d6383550f790ed3ceef6fbe7b61e9d344282 (patch)
tree24a429071f1c0965b2559e72e6247d88df0789d0 /Zotlabs/Module/Magic.php
parentedada2b7869d9565b4534114b6ed171e588185f6 (diff)
parente2e7bee3cca6f2ffc88aee9c94066e117e7a682b (diff)
downloadvolse-hubzilla-2f76d6383550f790ed3ceef6fbe7b61e9d344282.tar.gz
volse-hubzilla-2f76d6383550f790ed3ceef6fbe7b61e9d344282.tar.bz2
volse-hubzilla-2f76d6383550f790ed3ceef6fbe7b61e9d344282.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Magic.php')
-rw-r--r--Zotlabs/Module/Magic.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/Zotlabs/Module/Magic.php b/Zotlabs/Module/Magic.php
index 342c11eb9..d1550ec89 100644
--- a/Zotlabs/Module/Magic.php
+++ b/Zotlabs/Module/Magic.php
@@ -142,11 +142,8 @@ class Magic extends \Zotlabs\Web\Controller {
$headers['X-Open-Web-Auth'] = random_string();
$headers = \Zotlabs\Web\HTTPSig::create_sig('',$headers,$channel['channel_prvkey'],
'acct:' . $channel['channel_address'] . '@' . \App::get_hostname(),false,true,'sha512');
-
$x = z_fetch_url($basepath . '/owa',false,$redirects,[ 'headers' => $headers ]);
- logger('owtfetch: ' . print_r($x,true));
-
if($x['success']) {
$j = json_decode($x['body'],true);
if($j['success'] && $j['token']) {
@@ -161,16 +158,6 @@ class Magic extends \Zotlabs\Web\Controller {
$token = random_string();
-// $token_sig = base64url_encode(rsa_sign($token,$channel['channel_prvkey']));
-// $channel['token'] = $token;
-// $channel['token_sig'] = $token_sig;
-
-
-
-
-
-
-
\Zotlabs\Zot\Verify::create('auth',$channel['channel_id'],$token,$x[0]['hubloc_url']);
$target_url = $x[0]['hubloc_callback'] . '/?f=&auth=' . urlencode(channel_reddress($channel))