Apache2-Authen-OdinAuth
view release on metacpan or search on metacpan
# Allow any authenticated user
- url: !!perl/regexp ^debug3\.myapp\.com/
who: authed
# log_file: /tmp/odin.log
secret: ****************
reload_timeout: 600
need_auth_url: http://example.com/?NA
invalid_cookie_url: http://example.com/?CIU
not_on_list_url: http://example.com/?NOL
cookie: oa
lib/Apache2/Authen/OdinAuth.pm view on Meta::CPAN
# Allow any authenticated user
- url: !!perl/regexp ^debug3\.myapp\.com/
who: authed
# log_file: /tmp/odin.log
secret: ****************
reload_timeout: 600
need_auth_url: http://example.com/?NA
invalid_cookie_url: http://example.com/?CIU
not_on_list_url: http://example.com/?NOL
cookie: oa
NOTE: The config is better than original GodAuth configuration, but
will probably need to be refactored; it would be best to make it live
inside Apache's configuration. I'm still not sure how to make it
happen in mod_perl.
=cut
use constant RELOAD_TIMEOUT => 10*60; # reload config every 10 minutes
lib/Apache2/Authen/OdinAuth.pm view on Meta::CPAN
return Apache2::Const::OK;
}
}
}
#
# send the user to the not-on-list page
#
return &redir($r, config->{not_on_list_url});
}
=head2 redir(request, target, reason)
Redirect to Authorizer App
=cut
sub redir {
my ($r, $target, $reason) = @_;
my $ref = &urlencode($r->construct_url($r->unparsed_uri));
( run in 0.546 second using v1.01-cache-2.11-cpan-cc502c75498 )