summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.totp-tutorial.rst
Commit message (Collapse)AuthorAgeFilesLines
* docs: LARGE update to documentation, tutorials added, pages relocatedEli Collins2016-11-201-772/+0
| | | | | | | | | | | | | | | | * moved a bunch of pages into 'docs/narr' narrative subsection. added placeholder pages in old locations, to minimize inbound link breakage. * split history into separate pages, was getting way too long. removed toplevel CHANGES file, not feasible under new structure. * passlib.ifc split into reference & tutorial portions, tutorial allowed subsuming a bunch of other hash-usage examples. * added standard fragments for warning about insecure hashes, added them to top of a LOT of hash doc pages. * updated references, various layout tweaks
* totp: doc fixes, description of alternate caching strategy, serialization stepEli Collins2016-11-101-18/+121
| | | | | | | | | | | * added description of alternate caching strategy using normalize_token() and storing tokens instead of last_counter * added details of steps for reserializing TOTP objects w/ new secret. * warning that TOTP keys should always be encrypted * fixed some code block markup issues
* totp: added cache_seconds to TotpMatch repr, fixed py3 bug in UTsEli Collins2016-11-101-1/+1
|
* totp: corrections to tutorialEli Collins2016-11-091-0/+3
|
* totp: huge overhaul of the documentation, tutorial should be finished (?)Eli Collins2016-11-091-146/+364
|
* totp: consolidated key parsing code, clarified AppWallet behavior,Eli Collins2016-11-091-1/+1
| | | | | | | | | | | | | | | | * renamed AppWallet.can_encrypt -> AppWallet.has_secrets, no longer set to False if AES support is missing -- that way if app provides a secret, we either encrypt or throw error, rather than silently not encrypting. * .to_dict()'s "encrypt" keyword now uses None as default, rather than special string "auto" * hmac function now cached across multiple ._generate() calls, making ._find_match() a lot faster. * .key now a property, so that setting it clears encrypt key & hmac cache * factored out encrypted key code into .encrypted_key property.
* totp: lots of documentation updates, added example walkthrough using new systemEli Collins2016-11-081-42/+134
|
* totp: renamed TOTP.verify() to TOTP.match(); added new TOTP.verify() in it's ↵Eli Collins2016-11-081-13/+29
| | | | | | | | | | | place. * renamed TOTP.verify() to TOTP.match() -- this matches the TotpMatch class name a little better, and frees up TOTP.verify() for something new. * added new TOTP.verify() which handles parsing TOTP config source, and calling TOTP.match(), in one go. Main purpose of this is that it has same signature (and roughly the same behavior) as PasswordHash.verify().
* totp: OTPContext no longer frontend, reduced down to merely holdingEli Collins2016-11-081-5/+5
| | | | | | | | | | | | | | | | | | | | | 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.
* totp: added TOTP.using() for constructing TOTP factories with custom ↵Eli Collins2016-11-081-0/+1
| | | | | | | | | | | | | configuration options (such as secrets) already bound to the class. * added TOTP.using() helper * removed 'now' keyword from TOTP() constructor, can now only be specified via TOTP.using() -- adjusted UTs accordingly *
* totp: added TOTP.from_source() frontend which detects serialization format,Eli Collins2016-11-081-2/+2
| | | | and added TOTP.from_dict() for explicitly deserializing from dict format.
* totp: in place of stateful TOTP methods, expanded the TotpMatch() objectEli Collins2016-11-071-24/+36
| | | | | to provider .cache_seconds & .cache_time attributes to help applications decide how long the counter value should be cached.
* totp: stripped out the 'stateful' methods (TOTP.advance, TOTP.consume, and ↵Eli Collins2016-11-071-76/+5
| | | | | | | TOTP.last_counter). switching to purely stateless object, will update docs so that apps are instructed to persist verify()'s last_counter value independantly.
* totp: no functional code changes, just combined the BaseOTP and TOTP classes,Eli Collins2016-11-071-1/+1
| | | | since there's no need for the subdivision.
* totp: stripped out BaseOTP subtype resolutionEli Collins2016-11-071-10/+10
| | | | | | | | | | In preparation for merging BaseOTP & TOTP: * removed BaseOTP.type attr & ._type_map, * hardcoded TOTP class a few places since _type_map is gone * removed 'type' parameter from dict/json format (not needed since HTOP gone) * replaced refs to BaseOTP.from_*()/to_*() with TOTP.from_*()/to_*(), since the base class methods no longer work.
* totp: stripping out HOTP support -- not generally used/useful in the real worldEli Collins2016-11-071-12/+2
| | | | to justify the contortions it requires in the shared BaseOTP api.
* totp: documented the global from_uri() / from_json() helpers, as well as ↵Eli Collins2016-10-031-0/+6
| | | | to_dict() method.
* totp: added a bunch of tutorial content, relocated nested API documentationEli Collins2016-10-031-10/+376
| | | | | | | into their own sections of file so they're easier to navigate. tutorial covers a bunch of the basics, but still need to document OTPContext, and give a highlevel integration example.
* docs: large reorganization of documentationEli Collins2016-07-291-0/+36
* reordering into 'narrative' and 'reference' sections, to take advantage of 'fulltoc' extension making all pages visible in sidebar. * styling updates, requires latest cloud_sptheme * wording improvements to various bits of content