OAuth:...andlers(3pm)

πŸ“¦
version 0.11 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::GrantHandler
  • OAuth::Lite2::Server::GrantHandler::AuthorizationCode
  • OAuth::Lite2::Server::GrantHandler::ClientCredentials
  • OAuth::Lite2::Server::GrantHandler::Password
  • OAuth::Lite2::Server::GrantHandler::RefreshToken
  • OAuth::Lite2::Server::GrantHandler::GroupingRefreshToken
  • OAuth::Lite2::Server::GrantHandler::ServerState
  • OAuth::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 (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