Net::Duo::Admin::Token(3pm) | User Contributed Perl Documentation | Net::Duo::Admin::Token(3pm) |
Net::Duo::Admin::Token - Representation of a Duo token
my $decoded_json = get_json(); my $token = Net::Duo::Admin::Token->new($decoded_json); say $token->serial;
Perl 5.14 or later and the modules HTTP::Request and HTTP::Response (part of HTTP::Message), JSON, LWP (also known as libwww-perl), Perl6::Slurp, Sub::Install, and URI::Escape (part of URI), all of which are available from CPAN.
A Net::Duo::Admin::Token object is a Perl representation of a Duo token as returned by the Duo Admin API, usually via the tokens() method or nested in a user returned by the users() method. It contains various information about a token.
Note that several of these keys can only be set on token creation and cannot be retrieved afterwards.
serial => 'simple', token_id => 'simple', type => 'simple', users => 'Net::Duo::Admin::User',
Russ Allbery <rra@cpan.org>
Copyright 2014 The Board of Trustees of the Leland Stanford Junior University
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Net::Duo::Admin
Duo Admin API for tokens <https://www.duo.com/docs/adminapi#tokens>
This module is part of the Net::Duo distribution. The current version of Net::Duo is available from CPAN, or directly from its web site at <https://www.eyrie.org/~eagle/software/net-duo/>.
2022-12-18 | perl v5.36.0 |