NAME
Airlock::Factor::Callback - Second factor checked by the host application
VERSION
version 0.001
SYNOPSIS
my $factor = Airlock::Factor::Callback->new(
name => 'totp',
amr => 'otp',
verify => sub {
my ( $subject, $proof ) = @_;
return $directory->check_totp( $subject->{id}, $proof );
},
);
DESCRIPTION
For a host application that already has a second factor somewhere else, for example in its directory server. Airlock hands over subject and proof and takes the answer.
verify
Required. Coderef called with the subject and the proof; returns true when the proof holds.
available
Optional. Coderef called with the subject; returns true when the subject can use this factor. Without it the factor is available to everyone.
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-airlock/issues.
IRC
Join #kubernetes on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.