Concierge-Auth
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
^Makefile$
^Makefile\.old$
^blib/
pm_to_blib
\.o$
\.so$
# CPAN metadata (auto-generated; MYMETA only â META must ship in dist)
^MYMETA\.(json|yml)
# Temporary and backup files
~$
\.bak$
\.backup$
\.tmp$
\.swp$
\.swo$
^\#
# Test coverage
^cover_db/
# Distribution tarballs
\.tar\.gz$
examples/05-api-keys.pl view on Meta::CPAN
}
print "--- API Key Generation ---\n";
# Generate keys for different users and applications
my @key_specs = (
['alice', 'webapp', 'standard', ['read', 'write']],
['alice', 'mobile', 'readonly', ['read']],
['bob', 'dashboard', 'admin', ['read', 'write', 'delete', 'admin']],
['charlie', 'webhook', 'webhook', ['webhook']],
['alice', 'backup', 'readonly', ['read', 'export']]
);
my @generated_keys;
for my $spec (@key_specs) {
my ($username, $app, $type, $perms) = @$spec;
my $key_info = generate_api_key($username, $app, $type, $perms);
push @generated_keys, $key_info;
printf "%-8s/%-10s (%s): %s\n",
examples/06-file-management.pl view on Meta::CPAN
#!/usr/bin/env perl
=head1 NAME
06-file-management.pl - Authentication file management example
=head1 DESCRIPTION
Demonstrates file operations, backup management, and multi-file
authentication scenarios using Concierge::Auth.
=cut
use strict;
use warnings;
use Concierge::Auth;
use File::Temp qw(tempdir tempfile);
use File::Spec;
examples/06-file-management.pl view on Meta::CPAN
=head1 BEST PRACTICES
=over 4
=item * Use absolute paths for auth files
=item * Place auth files outside web-accessible directories
=item * Use restrictive directory permissions (0700)
=item * Implement regular backup strategies
=item * Monitor file access and modifications
=item * Use separate files for different security levels
=back
=head1 SEE ALSO
L<Concierge::Auth>, 07-error-handling.pl, 04-session-management.pl
( run in 1.493 second using v1.01-cache-2.11-cpan-df04353d9ac )