Example for using Instant2FA with Django's built-in authentication system.
- Docker Compose 1.8.0+
- Instant2FA API credentials. You can generate these at https://dashboard.instant2fa.com/signup
-
Update the
ACCESS_KEY
andACCESS_SECRET
environment variables indocker-compose.yml
with your credentials -
Start the container for the application with the
docker-compose up
command -
At this point the application should be running at port
8000
on your Docker host. If you are using a Docker Machine VM, you can use thedocker-machine ip MACHINE_NAME
command to get the IP address. If you're using Dinghy on OS X, you can access the application atmydjangoapp.docker/
. -
Log in with username
admin
and passwordpassword
and see how Instant2FA works!