Revision history for Perl extension Catalyst::Plugin::RequireSSL
-0.07 2010-04-02 07:28:00
+0.07 2011-01-14 19:07:00
- Converted to use Module::Install instead of Module::Build.
- Removed unused 'default' method from the app (triggered a deprecation warning).
- Fix Perl Critic test for hard tabs (t0m)
SYNOPSIS
# in MyApp.pm
- use Catalyst;
- MyApp->setup( qw/RequireSSL/ );
-
- MyApp->config->{require_ssl} = {
- https => 'secure.mydomain.com',
- http => 'www.mydomain.com',
- remain_in_ssl => 0,
- no_cache => 0,
- detach_on_redirect => 1,
- };
+ use Catalyst qw/
+ RequireSSL
+ /;
+ __PACKAGE__->config(
+ require_ssl => {
+ https => 'secure.mydomain.com',
+ http => 'www.mydomain.com',
+ remain_in_ssl => 0,
+ no_cache => 0,
+ detach_on_redirect => 1,
+ },
+ );
+ __PACKAGE__->setup;
+
# in any controller methods that should be secured
$c->require_ssl;
=head1 SYNOPSIS
# in MyApp.pm
- use Catalyst;
- MyApp->setup( qw/RequireSSL/ );
-
- MyApp->config->{require_ssl} = {
- https => 'secure.mydomain.com',
- http => 'www.mydomain.com',
- remain_in_ssl => 0,
- no_cache => 0,
- detach_on_redirect => 1,
- };
+ use Catalyst qw/
+ RequireSSL
+ /;
+ __PACKAGE__->config(
+ require_ssl => {
+ https => 'secure.mydomain.com',
+ http => 'www.mydomain.com',
+ remain_in_ssl => 0,
+ no_cache => 0,
+ detach_on_redirect => 1,
+ },
+ );
+ __PACKAGE__->setup;
+
# in any controller methods that should be secured
$c->require_ssl;