Authen-SASL-SCRAM
view release on metacpan or search on metacpan
lib/Authen/SASL/SCRAM.pm view on Meta::CPAN
my $salt = 'your-precious-salt';
# $server_key and $stored_key need to be looked up from a user store
my $server_key = 'server-key-stored-for-this-user';
my $stored_key = 'key-stored-for-this-user';
my $server => Authen::SASL->new(
mechanism => 'SCRAM-SHA-1', # selected mechanism
callback => {
getsecret => sub {
my $username = shift;
return ($salt, $stored_key, $server_key, $iterations);
},
}
);
=head1 DESCRIPTION
The C<Authen::SASL::SCRAM> distribution adds L<Authen::SASL> support for
SCRAM authentication using the mechanisms listed below by wrapping
L<Authen::SCRAM>.
( run in 0.478 second using v1.01-cache-2.11-cpan-71847e10f99 )