CGI::A...TGroup(3pm)
π NAME π
CGI::Application::Plugin::Authorization::Driver::HTGroup β the HTGroup Authorization driver π
okay so real talk, this is the manual page for that driver. It's giving "small but mighty", and it's here to tell your app who's allowed in based on good old Apache-style group files. slay π
β¨ SYNOPSIS β¨
bestie, this is the whole vibe right here:
use base qw(CGI::Application);
use CGI::Application::Plugin::Authorization);
__PACKAGE__->authz->config(
DRIVER => [ 'HTGroup', '/etc/apache/myapp/htgroup', '/etc/apache/htgroup' ],
);
wait, no, let me not do you dirty β here it is exactly, character for character, because I love you:
use base qw(CGI::Application);
use CGI::Application::Plugin::Authorization;
__PACKAGE__->authz->config(
DRIVER => [ 'HTGroup', '/etc/apache/myapp/htgroup', '/etc/apache/htgroup' ],
);
so you're subclassing CGI::Application, you pull in CGI::Application::Plugin::Authorization, and then you configure it with the driver named HTGroup followed by your htgroup file paths β in the example that's '/etc/apache/myapp/htgroup' and '/etc/apache/htgroup'. literally just a list of files, no cap πβ¨
πΈ METHODS πΈ
π¦ authorize_user
okay so this method takes a username, and right after it a list of group names β and it returns true if that user belongs to at least one of those groups. π«Ά
that's it. that's the whole method. one (1) job, and it eats every single time π
ngl, "at least one" is doing a LOT of heavy lifting in that sentence. It's not asking for all of them, bestie. One group match and you're in. π
π SEE ALSO π
go be nosy, these are your people:
CGI::Application::Plugin::Authorization::Driverβ the driver base, the blueprint, the blueprint-iest π§CGI::Application::Plugin::Authorizationβ the plugin that runs the whole show πperl(1)β hi, it's perl, you know her β
π LICENCE AND COPYRIGHT π
Copyright (c) 2005, SiteSuite. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt π
π DISCLAIMER OF WARRANTY π
bestie, this part is in ALL CAPS for a reason, so listen up β it's legally serious and I am not paraphrasing it, I'm just presenting it with the drama it deserves:
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
β οΈ tl;dr bestie: free software, zero promises, all the risk is on you. read the caps, they're not decorative. π
and that's the whole page!! this one shipped as part of perl v5.30.3, dated 2020-09-25 β and it lives under the name CGI::A...TGroup(3pm) in the User Contributed Perl Documentation section. go forth and authorize, you gorgeous thing π¦πβ¨
π¦ where this page comes from
- debian bookworm: libcgi-application-plugin-authorization-perl 0.07+~cs0.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcgi-application-plugin-authorization-perl 0.07+~cs0.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libcgi-application-plugin-authorization-perl 0.07+~cs0.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcgi-application-plugin-authorization-perl 0.07+~cs0.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcgi-application-plugin-authorization-perl 0.07+~cs0.1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcgi-application-plugin-authorization-perl 0.07+~cs0.1-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