Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add note to dev docs about how to generate 2FA code #4095

Merged
merged 1 commit into from
Feb 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/development/setup_development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ development.
* **Password:** ``correct horse battery staple profanity oil chewy``
* **TOTP secret:** ``JHCO GO7V CER3 EJ4L``

.. tip:: We're hosting a demonstration instance of SecureDrop so that anyone can see how
it works. The demo site generates Time-based One-time Password (TOTP) that you can use with the password above. To get a generated token, go to: http://demo.securedrop.club/

If you need to generate the six digit token, use the TOTP secret in
combination with an authenticator application that implements
`RFC 6238 <https://tools.ietf.org/html/rfc6238>`__, such as
Expand All @@ -143,6 +140,13 @@ can simply scan the following QR code:

.. image:: ../images/devenv/test-users-totp-qrcode.png

You can also generate the 2FA code using the Python interpreter:

.. code:: python

>>> import pyotp
>>> pyotp.TOTP('JHCOGO7VCER3EJ4L').now()
u'422038'

.. _multi_machine_environment:

Expand Down