Bez popisu

Bubka c20e5f79ef Move G-Auth import logic from controller to service před 3 roky
.github 4997562c45 Add GitHub FUNDING.yml file to enable lo-fi sponsoring před 3 roky
app c20e5f79ef Move G-Auth import logic from controller to service před 3 roky
bootstrap c9150c47fd initial commit před 6 roky
config fa4f569639 Bump version number & Complete change log před 3 roky
database 77046fbee7 Fix #71 - Cannot view old TOTP entries on latest Docker Image před 3 roky
docker 990fca3912 Fix #57 - NGINX tmp permission issue & reorganize Dockerfile content před 3 roky
docs abc97f1ae8 Update docs with latest 2FAuth version před 3 roky
public 9f39aee8a6 Recompile assets před 3 roky
resources e97f6cfbc6 Add Import view with basic import functionality před 3 roky
routes 0cccdf32ed Add back-end route|controller|request for import feature před 3 roky
storage 20856d62c6 Upgrade to Laravel 8 před 3 roky
tests 37c1f475c2 Fix and complete auth proxy tests před 3 roky
.dockerignore 3923ada6a0 Fix Docker test setup před 3 roky
.editorconfig 20856d62c6 Upgrade to Laravel 8 před 3 roky
.env.example 3676c5b344 Add PROXY_LOGOUT_URL to config files před 3 roky
.env.testing bfc34a381a Try to fix Travis sqlite errors před 3 roky
.env.travis b8fc5e6027 Put back a dedicated travis .env file před 3 roky
.gitattributes c9150c47fd initial commit před 6 roky
.gitignore 1641155fca Remove composer.lock from version control před 3 roky
.styleci.yml 20856d62c6 Upgrade to Laravel 8 před 3 roky
.travis.yml 530d09a93d Enable all tests for travis před 3 roky
Dockerfile 990fca3912 Fix #57 - NGINX tmp permission issue & reorganize Dockerfile content před 3 roky
LICENSE 02bbf59083 Add LICENSE file před 5 roky
Procfile 37892e912e Complete heroku setup před 3 roky
README.md d6222035ef Revert changes to composer.json scripts section před 3 roky
app.json a131d726f5 Add heroku email settings - Close #33 před 3 roky
artisan c9150c47fd initial commit před 6 roky
changelog.md fa4f569639 Bump version number & Complete change log před 3 roky
composer.json f7e8e9db4e Add PHP extensions requirements in composer.json & Update lock file před 3 roky
crowdin.yml 8ab7d70066 Add Crowdin configuration file před 4 roky
jsconfig.json e1f8c587eb Set repo to handle vscode files před 3 roky
nginx.conf 37892e912e Complete heroku setup před 3 roky
package-lock.json 94d23c7d06 Replace package 'thirty-two' with 'hi-base32' (#79) před 3 roky
package.json 94d23c7d06 Replace package 'thirty-two' with 'hi-base32' (#79) před 3 roky
phpunit-mysql.xml a571095e11 Remove ./ from phpunit config files před 3 roky
phpunit.xml a571095e11 Remove ./ from phpunit config files před 3 roky
server.php c9150c47fd initial commit před 6 roky
webpack.mix.js 984e6d253c Add sourcemap generation to webpack.mix config před 3 roky

README.md

2FAuth

Docker build status

A web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes

screens

2FAuth Demo

Use it with Docker

Credentials (login - password) : demo@2fauth.app - demo

Purpose

2FAuth is a web based self-hosted alternative to One Time Passcode (OTP) generators like Google Authenticator, designed for both mobile and desktop.

It aims to ease you perform your 2FA authentication steps whatever the device you handle, with a clean and suitable interface.

I created it because :

  • Most of the UIs for this kind of apps show tokens for all accounts in the same time with stressful countdowns (in my opinion)
  • I wanted my 2FA accounts to be stored in a standalone database I can easily backup and restore (did you already encountered a smartphone loss with all your 2FA accounts in Google Auth? I did...)
  • I hate taking out my smartphone to get an OTP when I use a desktop computer
  • I love coding and I love self-hosted solutions

Main features

  • Manage your 2FA accounts and organize them using Groups
  • Scan and decode any QR code to add account in no time
  • Add custom account without QR code thanks to an advanced form
  • Edit accounts, even the imported ones
  • Generate TOTP and HOTP security codes

2FAuth is currently fully localized in English and French. See Contributing if you want to help on adding more languages.

Security

2FAuth provide with several security mechanisms to protect your 2FA data as best as possible.

Single user app

You have to create a user account and authenticate yourself to use the app. It is not possible to create more than one user account, the app is thought for personal use.

Data encryption

Sensitive data stored in the database can be encrypted to protect them against db compromise. Encryption is provided as an option which is disabled by default. It is strongly recommanded to backup the APP_KEY value of your .env file (or the whole file) when encryption is On.

Auto logout

2FAuth automatically log you out after an inactivity period to prevent long life session. The auto logout can be deactivated or triggered when a security code is copied.

RFC compliance

2FAuth generates OTP according to RFC 4226 (HOTP Algorithm) and RFC 6238 (TOTP Algorithm) thanks to Spomky-Labs/OTPHP php library.

Requirements

Installation (using command line)

Guides

Searching for a guide on how to set up your running environment and deploy 2FAuth?

Here are the guides available:

Clone the repo

git clone https://github.com/bubka/2fauth.git

Install all php dependencies

php composer.phar install

Don't have composer? you can get it here

Set up your database

Create a database with one of the supported tools (see Requirements). For SQLite, place the database .sqlite file in the database/ folder of your 2FAuth installation.

Set your variables

In your installation directory make a copy of the .env.example file and rename the copy .env. Edit the .env file and adapt the settings to your running environment (see instructions in the file)

Prepare some stuff

php artisan migrate:refresh
php artisan passport:install
php artisan storage:link
php artisan config:cache

You are ready to go.

For development only

Checkout the 'dev' branch then install and build js dependencies

npm install
npm run dev

Upgrading

First, backup your database.

Then, using command line :

git pull
php composer.phar install
php artisan migrate
php artisan config:clear

Contributing

You can contribute to 2FAuth in many ways:

License

AGPL-3.0