Cataly...ireSSL(3pm)
π NAME π
Catalyst::ActionRole::RequireSSL β bestie, this is the role that makes an action secure-only. No cap. It forces an action to be SSL and nothing else. πβ¨
πΈ VERSION πΈ
version 1.00 β yes, one point oh oh, she's established π
β¨ SYNOPSIS β¨
Okay so here's the whole vibe in code, no edits, exactly as it lives:
package MyApp::Controller::Foo;
use parent qw/Catalyst::Controller::ActionRole/;
sub bar : Local Does('RequireSSL') { ... }
sub bar : Local Does('NoSSL') { ... }
See how Does('RequireSSL') and Does('NoSSL') just get slapped onto the attribute line? That's the whole move. So easy, so iconic π¦
π HIERARCHY π
Not me about to tell you the best part: you can chain the SSL Roles together π β like, stack them β so you can enforce combinations, such as everything secure except one specific action, and also the reverse (one thing secure, everything else not). The original says to go look at the tests if you wanna see this actually happening in action, so fr fr, the tests are the receipts. π§Ύ
π AUTHOR π
Simon Elliott <cpan@papercreatures.com> β the icon who made this π«Ά
π THANKS π
- Andy Grundman,
<andy@hybridized.org>β for the original RequireSSL Plugin. A legend, honestly. π - t0m (Tomas Doran), zamolxes (Bogdan Lucaciu), wreis (Wallace Reis) β the whole squad, appreciated π
π COPYRIGHT & LICENSE π
Copyright 2009 by Simon Elliott
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. (Translation: same-as-Perl terms, go wild, but respectfully. β¨)
And that's the page, bestie β this doc shipped with perl v5.26.1 and was dated 2018-03-17, so if you're reading this, a lil piece of 2018 is rooting for your SSL config. Stay secure, stay slay. π
πΈ
π¦ where this page comes from
- debian bookworm: libcatalyst-actionrole-requiressl-perl 1.00-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-actionrole-requiressl-perl 1.00-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libcatalyst-actionrole-requiressl-perl 1.00-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-actionrole-requiressl-perl 1.00-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms