Giter Site home page Giter Site logo

binary-com / duo_perl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from duosecurity/duo_perl

0.0 15.0 3.0 231 KB

Duo two-factor authentication for Perl web applications

Home Page: http://www.duosecurity.com/

License: Other

JavaScript 96.93% Perl 2.24% Perl 6 0.83%

duo_perl's Introduction

NAME

Auth::DuoWeb - Duo two-factor authentication for Perl web applications

SYNOPSIS

use Auth::DuoWeb;

my $sig_request = Auth::DuoWeb::sign_request(
    $IKEY, $SKEY, $AKEY, $email,
);

my $email = Auth::DuoWeb::verify_response(
    $IKEY, $SKEY, $AKEY, param('sig_response'),
);

DESCRIPTION

This package allows a web developer to quickly add Duo's interactive, self-service, two-factor authentication to any web login form - without setting up secondary user accounts, directory synchronization, servers, or hardware.

What's here:

js - Duo Javascript library, to be hosted by your webserver. DuoWeb.pm - Duo Perl SDK to be integrated with your web application t/duoweb.t - Unit tests for our SDK

sign_request

Generate a signed request for Duo authentication. The returned value should be passed into the Duo.init() call! in the rendered web page used for Duo authentication.

Arguments:

ikey      -- Duo integration key
skey      -- Duo secret key
akey      -- Application secret key
username  -- Primary-authenticated username

verify_response

Validate the signed response returned from Duo.

Returns the username of the authenticated user, or '' (empty string) if secondary authentication was denied.

Arguments:

ikey          -- Duo integration key
skey          -- Duo secret key
akey          -- Application secret key
sig_response  -- The signed response POST'ed to the server

USAGE

Developer documentation: http://www.duosecurity.com/docs/duoweb

Support

Report any bugs, feature requests, etc. to us directly: [email protected]

Have fun!

duo_perl's People

Contributors

ben-duo avatar fayland avatar alichator avatar

Watchers

 avatar chylli avatar James Cloos avatar Raunak Kathuria avatar Ashkan avatar Jean-Yves Sireau avatar Torsten Förtsch avatar Raunak avatar Rakshit avatar Frank Carnovale avatar yngshan-deriv avatar Teo Sze Siong avatar Arun Venkataraman avatar Tom Molesworth avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.