| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
*
|
| |
|
|
| |
and added TOTP.from_dict() for explicitly deserializing from dict format.
|
| |
|
|
|
| |
to provider .cache_seconds & .cache_time attributes to help applications
decide how long the counter value should be cached.
|
| |
|
|
|
|
|
| |
TOTP.last_counter).
switching to purely stateless object, will update docs so that apps are
instructed to persist verify()'s last_counter value independantly.
|
| |
|
|
| |
since there's no need for the subdivision.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
to justify the contortions it requires in the shared BaseOTP api.
|
| |
|
|
| |
to_dict() method.
|
| |
|
|
|
|
|
| |
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.
|
|
|
* 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
|