Do not require "me" parameter in connection callback
authorChristian Weiske <cweiske@cweiske.de>
Wed, 5 Sep 2018 20:18:21 +0000 (22:18 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 5 Sep 2018 20:18:21 +0000 (22:18 +0200)
It is not required by the IndieAuth spec anymore, see
https://www.w3.org/TR/indieauth/#authentication-response

Resolves: https://github.com/cweiske/shpub/issues/14

src/shpub/Command/Connect.php

index 6ac5ed45d2b54302d8b493c0f0a94094611e1f9d..b39665b1c729394335abeb749444d081fd578456 100644 (file)
@@ -279,7 +279,6 @@ class Command_Connect
                     parse_str($parts['query'], $query);
                     if (isset($query['code'])
                         && isset($query['state'])
                     parse_str($parts['query'], $query);
                     if (isset($query['code'])
                         && isset($query['state'])
-                        && isset($query['me'])
                     ) {
                         fwrite($sock, $responseOk);
                         fclose($sock);
                     ) {
                         fwrite($sock, $responseOk);
                         fclose($sock);