LWP::Authen::OAuth2::ServiceProvider::MediaWiki - Access MediaWiki using OAuth2.
use package LWP::Authen::OAuth2::ServiceProvider::Foo; use base qw(LWP::Authen::OAuth2::ServiceProvider::MediaWiki); use strict; use warnings; sub authorization_endpoint { return 'https://example.com/oauth2/authorize'; } sub token_endpoint { return 'https://example.com/oauth2/access_token'; } 1;
See https://www.mediawiki.org/wiki/Extension:OAuth for MediaWiki extension documentation.
See https://www.mediawiki.org/wiki/OAuth/For_Developers page which is for developers.
Real implementation is LWP::Authen::OAuth2::ServiceProvider::Wikimedia for Wikimedia meta OAuth2.
Error::Pure, LWP::Authen::OAuth2::ServiceProvider.
Make requests to OAuth2 APIs.
ServiceProvider base class
Access Wikimedia using OAuth2.
https://github.com/michal-josef-spacek/LWP-Authen-OAuth2-ServiceProvider-MediaWiki
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© Michal Josef Špaček 2022
BSD 2-Clause License
0.01
To install LWP::Authen::OAuth2::ServiceProvider::MediaWiki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LWP::Authen::OAuth2::ServiceProvider::MediaWiki
CPAN shell
perl -MCPAN -e shell install LWP::Authen::OAuth2::ServiceProvider::MediaWiki
For more information on module installation, please visit the detailed CPAN module installation guide.