aboutsummaryrefslogtreecommitdiff
path: root/auth/auth.htm
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-05 14:19:33 -0500
committerSean Allred <code@seanallred.com>2014-11-05 14:19:33 -0500
commit76887ae12de58c700d67ac7c57ad508a8e7f9564 (patch)
tree9516265690d275d45a1ac52438971b8c66998218 /auth/auth.htm
parent1a780c0d887ec3933a0c9192a0b3c045be855a66 (diff)
Add basic HTML/JavaScript to enable authentication
This should be accessible using `raw.github.com/...', but if not, I will put it on my webserver. For now, this seems like it's as good as it's going to get. When the page is accessed with an access token, this token is displayed (styled as CSS class `uservalue', big, dark, and green). Error conditions are not currently being handled, but they will be.
Diffstat (limited to 'auth/auth.htm')
-rw-r--r--auth/auth.htm22
1 files changed, 22 insertions, 0 deletions
diff --git a/auth/auth.htm b/auth/auth.htm
new file mode 100644
index 0000000..013b245
--- /dev/null
+++ b/auth/auth.htm
@@ -0,0 +1,22 @@
+<html>
+ <head>
+ <title>StackMode Authentication</title>
+ <script src="hash.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="style.css">
+ </head>
+ <body onLoad="extractValues()">
+ <h1>StackMode Authentication</h1>
+ <p>
+ Good news!
+ Authentication was successful.
+ Your authentication token is
+ <div class="uservalue">
+ <span id="access-token"></span>
+ </div>
+ Please paste this into the prompt within Emacs now.
+ </p>
+ <address>
+ <a href="http://www.github.com/vermiculus/stack-mode">Read the manual on GitHub</a>
+ </address>
+ </body>
+</html>