two-factor

command module
v0.0.0-...-88c838b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2015 License: MIT Imports: 14 Imported by: 0

README

#TOTP Este es un proyecto para la Universidad de Mendoza. El mismo es una simple aplicación que implemente doble autenticación vía Google Authenticator.

La aplicación está programada en Go

##Compilación Para poder compilar la aplicación se debe contar con la herramienta go y godep instalado https://github.com/tools/godep

Para compilar la aplicación correr

godep go build

##Correr el servicio El servidor puede ser utilizado con MySQL o SQLite.

Para utilizar MySQL, se debe simplemente setear la variable $MYSQL_STRING de acuerdo con lo explicado en https://github.com/go-sql-driver/mysql#dsn-data-source-name

Sino se puede utilzar SQLite seteando $SQLITE_PATH. MySQL tiene precedencia sobre SQLite, o sea si están las dos seteadas se utilará MySQL.

Si ninguna de estas variables existe se utilizara SQLite en el path /tmp/two-factor.db

El puerto puede ser cambiar seteando $PORT, por default corre en el puerto 8080

Para correr el servidor, simplemente hacer

./two-factor

##Utilizando la apliación Web Para poder loguearse recuerde descargar Google Authenticator, ya que de lo contrario no podrá obtener los códigos. Luego siga las instrucciones del sitio.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/go-sql-driver/mysql
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/securecookie
Package gorilla/securecookie encodes and decodes authenticated and optionally encrypted cookie values.
Package gorilla/securecookie encodes and decodes authenticated and optionally encrypted cookie values.
_workspace/src/github.com/gorilla/sessions
Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.
Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.
_workspace/src/github.com/julienschmidt/httprouter
Package httprouter is a trie based high performance HTTP request router.
Package httprouter is a trie based high performance HTTP request router.
_workspace/src/github.com/mattn/go-sqlite3
Package sqlite3 provides interface to SQLite3 databases.
Package sqlite3 provides interface to SQLite3 databases.
_workspace/src/github.com/satori/go.uuid
Package uuid provides implementation of Universally Unique Identifier (UUID).
Package uuid provides implementation of Universally Unique Identifier (UUID).
_workspace/src/golang.org/x/crypto/bcrypt
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
_workspace/src/golang.org/x/crypto/blowfish
Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.
Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL