Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

OAuth::Lite2::Server::GrantHandlers - store of handlers for each grant_type.

Author

       Ryo Ito, <ritou.06@gmail.com>

       Lyo Kato, <lyo.kato@gmail.com>

Description

       store of handlers for each grant_type.

Methods

add_handler($grant_type,$handler)
       add GrantHandler instance

   get_handler($grant_type)
       get GrantHandler instance

Name

       OAuth::Lite2::Server::GrantHandlers - store of handlers for each grant_type.

See Also

       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

Synopsis

           my $handler = OAuth::Lite2::Server::GrantHandlers->get_handler( $grant_type );
           $handler->handle_request( $ctx );

See Also