about summary refs log tree commit diff
path: root/kittybox-rs/companion-lite/index.html
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-10-02 11:54:30 +0300
committerVika <vika@fireburn.ru>2022-10-02 11:54:30 +0300
commit568f98589b6c30bb3f807517d28039b12dd54be3 (patch)
tree885f918885b246d3760cf3b1f2a252b88485f358 /kittybox-rs/companion-lite/index.html
parentb7d4e5c4686bc8aac41d832567190002542a1743 (diff)
downloadkittybox-568f98589b6c30bb3f807517d28039b12dd54be3.tar.zst
companion-lite: rewrite to use IndieAuth
This is a naive implementation that doesn't have some security
checks. It's ok tho, should work fine... can refine it later
Diffstat (limited to 'kittybox-rs/companion-lite/index.html')
-rw-r--r--kittybox-rs/companion-lite/index.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/kittybox-rs/companion-lite/index.html b/kittybox-rs/companion-lite/index.html
index b643ba2..e494cd9 100644
--- a/kittybox-rs/companion-lite/index.html
+++ b/kittybox-rs/companion-lite/index.html
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <html>
     <head>
         <meta charset="utf-8">
@@ -18,21 +19,20 @@
       </noscript>
 
       <div class="view" id="unauthorized" style="display:none">
-        
+        <form action="#" id="indieauth">
+          <label for="me">Your website URL:</label>
+          <input id="me" name="me" type="url">
+          <input type="submit">
+        </form>
+      </div>
+
+      <div class="view" id="authorizing" style="display:none">
+        <p>Performing the authorization dance...</p>
       </div>
 
       <div class="view" id="authorized" style="display:none">
         <form action="/.kittybox/micropub" method="POST" id="micropub">
           <fieldset>
-            <legend>Authorization details</legend>
-            <section>
-              <label for="access_token">Access token:</label>
-              <input id="access_token" name="access_token" type="password">
-
-              <p><a href="https://gimme-a-token.5eb.nl/" target="_blank">Get an access token (will open in a new tab)</a></p>
-            </section>
-          </fieldset>
-          <fieldset>
             <legend>Post details:</legend>
             <section>
               <label for="name">Name (leave blank for an unnamed post):</label>