Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial import
  • Loading branch information
stuartlangridge committed Sep 8, 2013
0 parents commit 20b85eb
Show file tree
Hide file tree
Showing 6 changed files with 546 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .htaccess
@@ -0,0 +1,2 @@
AddType text/cache-manifest .appcache

10 changes: 10 additions & 0 deletions README.md
@@ -0,0 +1,10 @@
Canonical Two-Factor Auth HTML5 client
=======================================

[Ubuntu One login](https://login.ubuntu.com), used for many Ubuntu and Canonical services (the Ubuntu wiki, Discourse, Ubuntu One itself, Launchpad, etc) has the option of allowing two-factor-auth. This is implemented using HOTP, a standard way to do this: when you log in, you go to your HOTP device and generate a new code, and then use that code along with your password to log in. There are many HOTP clients out there: Google Authenticator is a common one. It's nice to not have to rely on a native app, though, especially if that native app is not available for your platform.

Therefore, an HTML5 client-side app.

This is not specific to Ubuntu One login: this code is actually a completely generic JavaScript HOTP client for HTML5. It was written for Ubuntu One sign-in, though, so that's the language it uses.

It comes with an appcache, so if it's served over HTTP, it can be bookmarked as an "app" and will work offline. It contains no server components, so your HOTP keys are not used or even seen by the server.
6 changes: 6 additions & 0 deletions canauth.appcache
@@ -0,0 +1,6 @@
CACHE MANIFEST
# version 4
index.html
canonical_aubergine_hex_crushed.png
favicon.ico

Binary file added canonical_aubergine_hex_crushed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.ico
Binary file not shown.

0 comments on commit 20b85eb

Please sign in to comment.