Skip Menu |

This queue is for tickets about the Authen-Passphrase CPAN distribution.

Report information
The Basics
Id: 125064
Status: open
Priority: 0/
Queue: Authen-Passphrase

People
Owner: Nobody in particular
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.008
Fixed in: (no value)



Subject: Add API to use additional modules in the Authen::Passphrase namespace
I'm in the process of writing Authen::Passphrase::Argon2 (https://github.com/abraxxa/Authen-Passphrase-Argon2) and it fails to get used by DBIx::Class::InflateColumn::Authen::Passphrase because there is no way to extend/register crypt_scheme_handler and rfc2307_scheme_handler. As they aren't class but instance variables monkeypatching isn't an option either. Please suggest an API to do so, thanks!
On 2018-04-10 09:24:37, ABRAXXA wrote: Show quoted text
> As they aren't class but instance variables monkeypatching isn't an > option either.
This is possible to do with PadWalker::closed_over(), but this usage is such a hack it is only suitable for tests, not real production code. A way of registering additional handlers at runtime would be *very* much appreciated.
I would like to see this as well. Would you accept a PR?