• Overview of accessing OAuth2 APIs with LWP::Authen::OAuth2 (metacpan.org)
    identity
    Ignore that it’s written in the context of Perl, and it is a pretty good explanation of OAuth2