logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

OAuth::Lite2::Server::GrantHandler - base class of each grant_type handler

Author

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

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

Methods

new
       Constructor

   is_required_client_authentication
       Return whether each grant type requires the client authentication The grant type which are defined in
       spec require client authentication, but additional grant type may not.

   handle_request($data_handler)
       processes passed OAuth::Lite2::Server::DataHandler, and return hash represents that includes response-
       parameters.

           my $res = $handler->handle_request( $data_handler );

Name

       OAuth::Lite2::Server::GrantHandler - base class of each grant_type handler

See Also

       OAuth::Lite2::Server::GrantHandlers OAuth::Lite2::Server::GrantHandler::AuthorizationCode
       OAuth::Lite2::Server::GrantHandler::Password OAuth::Lite2::Server::GrantHandler::RefreshToken
       OAuth::Lite2::Server::GrantHandler::GroupingRefreshToken OAuth::Lite2::Server::GrantHandler::ServerState

Synopsis

           my $handler = OAuth::Lite2::Server::GrantHandler->new;
           my $res = $handler->handle_request( $ctx );

See Also