OAuth:...andlers(3pm)
π OAuth::Lite2::Server::GrantHandlers π
okay bestie, so this is a Perl module from the User Contributed Perl Documentation situation, and honestly? it's giving handler storage. it's literally a little store of handlers for each grant_type. that's it. that's the vibe. and it slays at it β¨
πΈ SYNOPSIS πΈ
here's the whole thing in action, no cap:
my $handler = OAuth::Lite2::Server::GrantHandlers->get_handler( $grant_type );
$handler->handle_request( $ctx );
you grab a handler for a grant_type, and then you make it handle_request( $ctx ). iconic behavior fr fr π
β¨ DESCRIPTION β¨
so, like, literally what it says on the tin: it's a store of handlers for each grant_type. that's the whole personality. a little closet full of grant handlers, and you can pull one out by its grant_type. obsessed π
π¦ METHODS π¦
add_handler( $grant_type, $handler )
adds a GrantHandler instance. that's it. you're stocking the shelf, bestie π§
get_handler( $grant_type )
gets a GrantHandler instance. you ask nicely by grant_type and it hands you the handler π
π SEE ALSO π
these are the besties this module hangs out with β go read them too, iykyk:
OAuth::Lite2::Server::GrantHandlerOAuth::Lite2::Server::GrantHandler::AuthorizationCodeOAuth::Lite2::Server::GrantHandler::ClientCredentialsOAuth::Lite2::Server::GrantHandler::PasswordOAuth::Lite2::Server::GrantHandler::RefreshTokenOAuth::Lite2::Server::GrantHandler::GroupingRefreshTokenOAuth::Lite2::Server::GrantHandler::ServerStateOAuth::Lite2::Server::GrantHandler::ExternalService
π AUTHOR π
the masterminds, the main characters, the ones who actually wrote this:
- Ryo Ito,
<ritou.06@gmail.com> - Lyo Kato,
<lyo.kato@gmail.com>
π COPYRIGHT AND LICENSE π
Copyright (C) 2010 by Lyo Kato
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
so yeah β free software, do your thing, just keep the same terms as Perl itself. periodt π
and that's the whole page, bestie π«Ά this one came from perl v5.36.0, dated 2023-07-01 β the footer said so and i'm just relaying the tea πβ¨
π¦ where this page comes from
- debian trixie: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liboauth-lite2-perl 0.11-3 Β· 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