"connect" works and stores token in config
[shpub.git] / src / shpub / Config / Endpoints.php
similarity index 64%
rename from src/shpub/Config/HostCache.php
rename to src/shpub/Config/Endpoints.php
index 03311c328a6cc0c7664bd353dd789159e607645f..c029b95c55c6a52af4b4e9687ca6331e87e6cf9e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 namespace shpub;
 
-class Config_HostCache
+class Config_Endpoints
 {
     /**
      * Micropub endpoint URL
@@ -29,6 +29,13 @@ class Config_HostCache
      *
      * @var string
      */
-    public $auth;
+    public $authorization;
+
+    public function incomplete()
+    {
+        return $this->authorization === null
+            || $this->token === null
+            || $this->micropub === null;
+    }
 }
 ?>