Skip to main content

Secure authentication by TOTP, SMS, Codes & Question

Project description

Demo installation:

$ sudo apt-get install geoip-database-contrib rabbitmq-server
$ mkvirtualenv django-secure-auth
$ git clone https://github.com/gotlium/django-secure-auth.git
$ cd django-secure-auth
$ pip install -r requirements.txt
$ python setup.py develop
$ cd demo
$ pip install -r requirements.txt
$ python manage.py syncdb --noinput
$ python manage.py migrate

Open settings:

$ vim demo/settings.py

Replace Twilio credentials in AUTH_SMS_BACKEND_AUTH to your demo account settings.

Run RabbitMQ server and Celery daemon(or remove ‘djcelery’ from INSTALLED_APPS):

$ rabbitmq-server -detached
$ python manage.py celeryd --loglevel=info >& /dev/null &

Run test server:

$ python manage.py runserver

Now you can open http://127.0.0.1:8000/accounts/register/ and register new account and setup all available authentication methods.

Note: activation link will be output on console.

Screenshots

/screenshots/login-confirmation.jpg /screenshots/settings.jpg /screenshots/two-factor-configuration.jpg /screenshots/sms-settings.jpg Bitdeli badge

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-secure-auth-1.0.tar.gz (26.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page