Authen-SCRAM

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

      "runtime" : {
         "requires" : {
            "Authen::SASL::SASLprep" : "1.100",
            "Carp" : "0",
            "Crypt::URandom" : "0",
            "Encode" : "0",
            "MIME::Base64" : "0",
            "Moo" : "1.001000",
            "Moo::Role" : "1.001000",
            "PBKDF2::Tiny" : "0.003",
            "Try::Tiny" : "0",
            "Types::Standard" : "0",
            "namespace::clean" : "0",
            "perl" : "5.008001",
            "strict" : "0",
            "warnings" : "0"
         }
      },
      "test" : {
         "recommends" : {
            "CPAN::Meta" : "2.120900"

META.yml  view on Meta::CPAN

    version: '0.011'
requires:
  Authen::SASL::SASLprep: '1.100'
  Carp: '0'
  Crypt::URandom: '0'
  Encode: '0'
  MIME::Base64: '0'
  Moo: '1.001000'
  Moo::Role: '1.001000'
  PBKDF2::Tiny: '0.003'
  Try::Tiny: '0'
  Types::Standard: '0'
  namespace::clean: '0'
  perl: '5.008001'
  strict: '0'
  warnings: '0'
resources:
  bugtracker: https://github.com/dagolden/Authen-SCRAM/issues
  homepage: https://github.com/dagolden/Authen-SCRAM
  repository: https://github.com/dagolden/Authen-SCRAM.git
version: '0.011'

Makefile.PL  view on Meta::CPAN

  "NAME" => "Authen::SCRAM",
  "PREREQ_PM" => {
    "Authen::SASL::SASLprep" => "1.100",
    "Carp" => 0,
    "Crypt::URandom" => 0,
    "Encode" => 0,
    "MIME::Base64" => 0,
    "Moo" => "1.001000",
    "Moo::Role" => "1.001000",
    "PBKDF2::Tiny" => "0.003",
    "Try::Tiny" => 0,
    "Types::Standard" => 0,
    "namespace::clean" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "Exporter" => 0,
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "Test::FailWarnings" => 0,

Makefile.PL  view on Meta::CPAN

  "Exporter" => 0,
  "ExtUtils::MakeMaker" => 0,
  "File::Spec" => 0,
  "MIME::Base64" => 0,
  "Moo" => "1.001000",
  "Moo::Role" => "1.001000",
  "PBKDF2::Tiny" => "0.003",
  "Test::FailWarnings" => 0,
  "Test::Fatal" => 0,
  "Test::More" => "0.96",
  "Try::Tiny" => 0,
  "Types::Standard" => 0,
  "base" => 0,
  "lib" => 0,
  "namespace::clean" => 0,
  "strict" => 0,
  "warnings" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {

README  view on Meta::CPAN

NAME
    Authen::SCRAM - Salted Challenge Response Authentication Mechanism (RFC
    5802)

VERSION
    version 0.011

SYNOPSIS
        use Authen::SCRAM::Client;
        use Authen::SCRAM::Server;
        use Try::Tiny;

        ### CLIENT SIDE ###

        $client = Authen::SCRAM::Client->new(
            username => 'johndoe',
            password => 'trustno1',
        );

        try {
            $client_first = $client->first_msg();

cpanfile  view on Meta::CPAN

requires "Authen::SASL::SASLprep" => "1.100";
requires "Carp" => "0";
requires "Crypt::URandom" => "0";
requires "Encode" => "0";
requires "MIME::Base64" => "0";
requires "Moo" => "1.001000";
requires "Moo::Role" => "1.001000";
requires "PBKDF2::Tiny" => "0.003";
requires "Try::Tiny" => "0";
requires "Types::Standard" => "0";
requires "namespace::clean" => "0";
requires "perl" => "5.008001";
requires "strict" => "0";
requires "warnings" => "0";

on 'test' => sub {
  requires "Exporter" => "0";
  requires "ExtUtils::MakeMaker" => "0";
  requires "File::Spec" => "0";

lib/Authen/SCRAM.pm  view on Meta::CPAN

Authen::SCRAM - Salted Challenge Response Authentication Mechanism (RFC 5802)

=head1 VERSION

version 0.011

=head1 SYNOPSIS

    use Authen::SCRAM::Client;
    use Authen::SCRAM::Server;
    use Try::Tiny;

    ### CLIENT SIDE ###

    $client = Authen::SCRAM::Client->new(
        username => 'johndoe',
        password => 'trustno1',
    );

    try {
        $client_first = $client->first_msg();

lib/Authen/SCRAM/Client.pm  view on Meta::CPAN

# ABSTRACT: RFC 5802 SCRAM client

our $VERSION = '0.011';

use Moo 1.001000;

use Carp qw/croak/;
use Encode qw/encode_utf8/;
use MIME::Base64 qw/decode_base64/;
use PBKDF2::Tiny 0.003 qw/derive/;
use Try::Tiny;
use Types::Standard qw/Str Num/;

use namespace::clean;

#--------------------------------------------------------------------------#
# public attributes
#--------------------------------------------------------------------------#

#pod =attr username (required)
#pod

lib/Authen/SCRAM/Client.pm  view on Meta::CPAN


Authen::SCRAM::Client - RFC 5802 SCRAM client

=head1 VERSION

version 0.011

=head1 SYNOPSIS

    use Authen::SCRAM::Client;
    use Try::Tiny;

    $client = Authen::SCRAM::Client->new(
        username => 'johndoe',
        password => 'trustno1',
    );

    try {
        $client_first = $client->first_msg();

        # send to server and get server-first-message

lib/Authen/SCRAM/Role/Common.pm  view on Meta::CPAN

our $VERSION = '0.011';

use Moo::Role 1.001000;

use Authen::SASL::SASLprep 1.100 qw/saslprep/;
use Carp qw/croak/;
use Crypt::URandom qw/urandom/;
use Encode qw/encode_utf8/;
use MIME::Base64 qw/encode_base64/;
use PBKDF2::Tiny 0.003 qw/digest_fcn hmac/;
use Try::Tiny;
use Types::Standard qw/Bool Enum Num HashRef CodeRef/;

use namespace::clean;

#--------------------------------------------------------------------------#
# public attributes
#--------------------------------------------------------------------------#

has digest => (
    is      => 'ro',

lib/Authen/SCRAM/Server.pm  view on Meta::CPAN


Authen::SCRAM::Server - RFC 5802 SCRAM Server

=head1 VERSION

version 0.011

=head1 SYNOPSIS

    use Authen::SCRAM::Server;
    use Try::Tiny;

    $server = Authen::SCRAM::Server->new(
        credential_cb => \&get_credentials,
    );

    $username = try {
        # get client-first-message

        $server_first = $server->first_msg( $client_first );

t/00-report-prereqs.dd  view on Meta::CPAN

       'runtime' => {
                      'requires' => {
                                      'Authen::SASL::SASLprep' => '1.100',
                                      'Carp' => '0',
                                      'Crypt::URandom' => '0',
                                      'Encode' => '0',
                                      'MIME::Base64' => '0',
                                      'Moo' => '1.001000',
                                      'Moo::Role' => '1.001000',
                                      'PBKDF2::Tiny' => '0.003',
                                      'Try::Tiny' => '0',
                                      'Types::Standard' => '0',
                                      'namespace::clean' => '0',
                                      'perl' => '5.008001',
                                      'strict' => '0',
                                      'warnings' => '0'
                                    }
                    },
       'test' => {
                   'recommends' => {
                                     'CPAN::Meta' => '2.120900'



( run in 0.696 second using v1.01-cache-2.11-cpan-05444aca049 )