Net::O...Server(3pm)
π Net::OAuth2::AuthorizationServer π
okay bestie, so this is Net::OAuth2::AuthorizationServer, a Perl module (it's a 3pm manual page, perldoc girlies rise up π«Ά), and it's literally your gateway to setting up an OAuth2 Authorization Server without losing your entire mind. slay.
β¨ VERSION β¨
0.28 β yes queen, that's the one, that's the version π
πΈ SYNOPSIS πΈ
my $Server = Net::OAuth2::AuthorizationServer->new;
my $Grant = $Server->$grant_type(
...
);
that's it. that's the whole vibe. you make the server, you call your grant type on it, the rest is history π
π¦ DESCRIPTION π¦
so ne way, this module is the gateway to all the different OAuth2 grant flows, exactly as documented at https://tools.ietf.org/html/rfc6749. each module implements one specific grant flow and is designed to "just work" with minimal detail and minimal effort β lowkey iconic behaviour honestly β¨
please go look at Net::OAuth2::AuthorizationServer::Manual for more info on how to use this module and all the various grant types. and like, you should use that manual in conjunction with whichever grant type module you're using, so you actually understand how to override the defaults β because if the "just work" mode isn't good enough for you (no shade, sometimes it truly isn't), the manual is where you find out how to bend it to your will πͺ
π GRANT TYPES π
π auth_code_grant
OAuth Authorisation Code Grant, as documented at http://tools.ietf.org/html/rfc6749#section-4.1.
see Net::OAuth2::AuthorizationServer::AuthorizationCodeGrant. the OG, the blueprint, the blueprint blueprint π
π implicit_grant
OAuth Implicit Grant, as documented at https://tools.ietf.org/html/rfc6749#section-4.2.
see Net::OAuth2::AuthorizationServer::ImplicitGrant.
π password_grant
OAuth Resource Owner Password Grant, as documented at http://tools.ietf.org/html/rfc6749#section-4.3.
see Net::OAuth2::AuthorizationServer::PasswordGrant.
π§ client_credentials_grant
OAuth Client Credentials Grant, as documented at http://tools.ietf.org/html/rfc6749#section-4.4.
see Net::OAuth2::AuthorizationServer::ClientCredentialsGrant. services talking to services, no humans required, main character energy for machines fr fr π
β SEE ALSO β
Mojolicious::Plugin::OAuth2::Serverβ a Mojolicious plugin using this module πCrypt::JWTβ encode/decode JWTs π«
π«Ά AUTHOR & CONTRIBUTORS π«Ά
Lee Johnson β leejo@cpan.org
with contributions from, and we're giving them all their flowers because they deserve them π:
- Martin Renvoize β
martin.renvoize@ptfs-europe.com - Pierre VIGIER β
pierre.vigier@gmail.com - Ian Sillitoe β
https://github.com/sillitoe - Mirko Tietgen β
mirko@abunchofthings.net - Dylan William Hardison β
dylan@hardison.net
π LICENSE π
this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. and if you wanna contribute documentation or file a bug report, then please raise an issue / pull request at:
https://github.com/Humanstate/net-oauth2-authorizationserver
bestie this is the part where you actually do the thing. fork it, fix it, ship it. no cap π«‘
aaaand that's the whole page π written up against perl v5.36.0, dated 2022-08-28, and yes it's a 3pm page so it lives right there in your perldoc. go read it, go build something, go be iconic. periodt β¨ππ
π¦ where this page comes from
- ubuntu noble: libnet-oauth2-authorizationserver-perl 0.28-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-oauth2-authorizationserver-perl 0.28-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-oauth2-authorizationserver-perl 0.28-2 Β· 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