OpenTok3n is an open source platform for multi-factor authentication based on Tok3n Platform.
- Go programming language.
- Git and Mercurial for the
go get
dependencies resolver. See more information about the version control tools. - A MySQL server and a new database.
- Verify your Golang installation running
go
. - Create/Select a directory for the OpenTok3n installation and set up the $GOPATH in your bash profile running
echo "export GOPATH=$HOME/SelectedDirectory" >> $HOME/.bashrc
. For more information about choosing a GOPATH rungo help gopath
. Also see this post about choosing a bash profile file. - Install OpenTok3n running
go get github.com/Tok3n/OpenTok3n
and thengo install github.com/Tok3n/OpenTok3n
. - Verify the installation running
OpenTok3n
.
- Install Tok3n on your Android smartphone.
- Create an account at secure.tok3n.com. Scan the barcode with the Tok3n app to authenticate.
- Click the "New integration" button and follow the steps.
- Retrieve your API Keys.
There are three configuration methods:
- Perform an interactive configuration running
OpenTok3n
for the first time. - Create an opentok3n.config file and provide the path to the folder where such file is located.
OpenTok3n --path /pathToConfigFolder
. Please note the file should be written in json format.
{
"Inited": true,
"Address": "127.0.0.1",
"Port": "63568",
"DBAddress": "localhost",
"DBPort": "3306",
"DBUser": "root",
"DBPassword": "yourDBpassword",
"DBName": "opentok3n",
"DBTablePrefix": "myintegration_",
"Tok3nAPISecret": "YOUR-TOK3N-SECRET-KEY",
"Tok3nAPIKey": "YOUR-TOK3N-PUBIC-KEY"
}
- Provide the configuration parameters using the "--" syntax to the server at run. Learn more running
OpenTok3n --help
.
The default values for Address
and Port
are "localhost:63568".
You should manually set Inited
as true until we fix the auto file loader.
You can also run OpenTok3n --help
if you forget the installation arguments.