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;
DESCRIPTION
+ Note: This module is considered to be deprecated for most purposes.
+ Consider using Catalyst::ActionRole::RequireSSL instead.
+
Use this plugin if you wish to selectively force SSL mode on some of
your web pages, for example a user login form or shopping cart.
static files directly from your web server.
SEE ALSO
- Catalyst, Catalyst::Plugin::Static::Simple
+ Catalyst, Catalyst::ActionRole::RequireSSL,
+ Catalyst::Plugin::Static::Simple
AUTHOR
Andy Grundman, <andy@hybridized.org>