Authen...:Const(3pm)

πŸ’– Authen::U2F::Tester::Const πŸ’–

okay so bestie, welcome to Authen::U2F::Tester::Const β€” the little constants module that the user-contributed Perl docs gang put together, and honestly? it's giving supportive best friend energy. it doesn't do much, but what it does, it slays. πŸŽ€


✨ NAME ✨

Authen::U2F::Tester::Const β€” the constants for Authen::U2F::Tester, no cap πŸ’…


🌸 VERSION 🌸

version 0.03 β€” yeah she's a lil vintage, but she works 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

 # import constants explicitly by name
 use Authen::U2F::Tester::Const qw(OK DEVICE_INELIGIBLE);

 # import all constants
 use Authen::U2F::Tester::Const ':all';

 # example of a sign() request where the device has not been registered
 my $r = $tester->sign(...);

 if ($r->error_code == DEVICE_INELIGIBLE) {
    die "this device has not been registered";
 }

like, you can name-pick your constants one by one with qw(OK DEVICE_INELIGIBLE), or you can just go feral and grab literally all of them with ':all'. main character choice, honestly. πŸ‘‘

and then the little example up there? that's the vibe check for a sign() request where the device was never registered β€” so when $r->error_code comes back matching DEVICE_INELIGIBLE, you die with "this device has not been registered". periodt. πŸ’€


🌈 DESCRIPTION 🌈

this module hands you the error constants that Authen::U2F::Tester uses. that's the whole job. she's a constants girlie and she's thriving. ✨


πŸ‘‘ ATTRIBUTES πŸ‘‘

πŸ“ OK

this error code means the response was a success. slay, we love a happy ending. πŸ’–

πŸ™ˆ OTHER_ERROR

this one means some other error happened. like… an unspecified lil gremlin. not me being vague, that's literally what it is. 😭

πŸ’€ BAD_REQUEST

this error code means the request cannot be processed. it's giving "nope, not today". 🚫

🧚 CONFIGURATION_UNSUPPORTED

this error code means the client configuration is not supported. your config didn't pass the vibe check, bestie. πŸ’”

🌸 DEVICE_INELIGIBLE

this error code means the device is not eligible for this request.

and here's the tea, two flavours:

  • for a registration request, it may mean the device has already been registered.
  • for a signing request, it may mean the device was never registered.

either way, she said no. πŸ˜”

⏰ TIMEOUT

this error code means a timeout happened while waiting for the request to be satisfied. the clock ran out, the vibe expired, it's over fr fr. πŸ•°οΈ


πŸ”₯ SOURCE πŸ”₯

the development version lives on github at

<http://https://github.com/mschout/perl-authen-u2f-tester>

and you can clone it from

<git://https://github.com/mschout/perl-authen-u2f-tester.git>

go forth and git clone, bestie 🫢


πŸ› BUGS πŸ›

please report any bugs or feature requests on the bugtracker website

<https://github.com/mschout/perl-authen-u2f-tester/issues>

when you submit a bug or a request, pls pls pls include a test-file or a patch to an existing test-file that illustrates the bug or the desired feature. no test file = we're all just guessing and guessing is NOT the vibe. πŸ™

πŸ’œ AUTHOR πŸ’œ

Michael Schout <mschout@cpan.org> β€” iconic, we stan 🌟


this software is copyright (c) 2017 by Michael Schout.

this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free as in freedom, bestie, go wild. πŸ’–


and that's the whole page!! perl v5.26.2, dated 2018-04-12 β€” yeah she's from 2018 but the drip is timeless, mwah πŸ’…βœ¨ bye bestie!! πŸ¦‹

πŸ“¦ where this page comes from