diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2016-11-08 17:51:35 -0500 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2016-11-08 17:51:35 -0500 |
| commit | 9ae48391749cc2df33411cb26f79934a219bd999 (patch) | |
| tree | c2a6a819cc6eb72379d134fe44acdb4c79d65e54 /docs/lib/passlib.totp-tutorial.rst | |
| parent | a060b0645af97ba5a3559b0d93c1ea0f766932dd (diff) | |
| download | passlib-9ae48391749cc2df33411cb26f79934a219bd999.tar.gz | |
totp: OTPContext no longer frontend, reduced down to merely holding
the application secrets needing for encryption -- renamed to AppWallet()
* AppWallet class dedicated to just holding application secrets,
rather than providing awkward frontend for TOTP construction.
Intended method for invoking it is through TOTP.using(),
which handles the details of construction.
* Renamed TOTP.context attr to TOTP.wallet
* Removed 'context' keyword from TOTP.from_source() etc,
callers should now bind the wallet via TOTP.using().from_source().
* Made AppWallet.default_tag a public attr,
renamed 'cost' attr to 'encrypt_cost'
* Removed the passlib.totp toplevel constructors (new, from_uri, from_json) --
can now do all that from TOTP class.
Diffstat (limited to 'docs/lib/passlib.totp-tutorial.rst')
| -rw-r--r-- | docs/lib/passlib.totp-tutorial.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/lib/passlib.totp-tutorial.rst b/docs/lib/passlib.totp-tutorial.rst index acd650e..a2fc7db 100644 --- a/docs/lib/passlib.totp-tutorial.rst +++ b/docs/lib/passlib.totp-tutorial.rst @@ -157,7 +157,7 @@ is a dictionary vs string. For more details, see the :meth:`~passlib.totp.TOTP.from_source` constructor, and the :meth:`~passlib.totp.TOTP.to_json` method; - as well as the stateful usage & OTPContext usage tutorials below. + as well as the stateful usage & AppWallet usage tutorials below. Generating Tokens ----------------- @@ -288,15 +288,15 @@ As an example:: .. _totp-context-usage: -OTPContext Usage -================ -.. todo:: document how OTPContext can be used to persist TOTP tokens securely. +AppWallet Usage +=============== +.. todo:: document how AppWallet can be used to persist TOTP tokens securely. include TOTP.using() in this section. Highlevel Quickstart ==================== The following is a guide for quickly getting TOTP support integrated into your -application, using passlib's highlevel :class:`OTPContext` helper class. +application, using passlib's highlevel :class:`AppWallet` helper class. .. todo:: needs to write quickstart guide. |
