Net::Duo

Description

Duo Security is a cloud second-factor authentication service that supports a wide variety of different mechanisms for a user to establish a second authentication factor. It is intended to supplement local authentication systems, such as password-based authentication, with an unrelated second factor: possession of a device, or access to a phone. Duo Security provides direct integration with a variety of applications and a self-service web sign-up interface, but for more control, it also provides several RESTful APIs that can perform all possible actions on Duo accounts, users, and their devices.

This module implements a client for the Duo REST APIs. It differs from the sample Perl implementation provided by Duo in that it attempts to wrap the Duo data model and JSON information in Perl objects and provide logical and convenient methods on those objects to make writing Perl clients of Duo simpler and easier. It tries to abstract portions of the API, such as the endpoint URLs, that allow for more natural and less cluttered Perl code than manipulating the JSON data structures directly.

The API implementation is currently incomplete and contains just the calls required by Stanford's integration. Only the Auth and Admin APIs are implemented, and both are partial. However, the Net::Duo call and call_json methods can be used to make calls to APIs that aren't fully implemented.

Requirements

Perl 5.14 or later and Module::Build 0.28 or later are required to build this module. The following additional Perl modules are required to use it:

The following additional Perl modules will be used by the test suite if present:

All are available on CPAN. Those tests will be skipped if the modules are not available.

To enable tests that don't detect functionality problems but are used to sanity-check the release, set the environment variable RELEASE_TESTING to a true value. To enable tests that may be sensitive to the local environment or that produce a lot of false positives without uncovering many problems, set the environment variable AUTHOR_TESTING to a true value.

Download

The distribution:

Net::Duo 1.01 2015-08-16 Download PGP signature

An archive of older releases is also available.

A Debian package (libnet-duo-perl) is available from Debian as of the jessie release.

Net::Duo is maintained using the Git version control system. To check out the current development tree, clone:

    git://git.eyrie.org/perl/net-duo.git

You can also browse the current development source.

Documentation

User documentation:

Developer documentation:

API documentation:

License

The Net::Duo package as a whole is covered by the following license:

Copyright 2014 The Board of Trustees of the Leland Stanford Junior University
Copyright 2015 Russ Allbery <rra@cpan.org>

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.

Some individual source files are covered by other, compatible licenses. For complete copyright and license information, see the file LICENSE in the Net::Duo source distribution.

Last modified and spun 2015-08-16