Net::OAuth2::Client3pm
Client for oauth2 access, deprecated interface
Usage
# This module provides the deprecated interfacemy $client = Net::OAuth2::Client->new($client_id,$client_secret,site => $site);my $auth = $client->web_server(redirect_path => "$site/auth/facebook/callback");# interface since v0.50my $client = Net::OAuth2::Profile::WebServer->new(client_id => $client_id,client_secret => $client_secret,site => $siteredirect_uri => "$site/auth/facebook/callback");
Overview
This module is kept to translate the expired interface into the new interface.
Methods
Constructors
- Net::OAuth2::Client->
new($id, $secret, %options) -
This object collects all
%optionsto be used whenweb_server()creates a profile.The
$idwill be translated into OPTION"client_id", and$secretto"client_secret".
Accessors
- $obj->
id()
- $obj->
secret()
- $obj->
user_agent()
Actions
- $obj->
password(%options) -
Create a Net::OAuth2::Profile::Password object, based on all options passed with
new(), overruled/extended by the%optionspassed here.
- $obj->
web_server(%options) -
Create a Net::OAuth2::Profile::WebServer object, based on all options passed with
new(), overruled/extended by the%optionspassed here.
Copyrights
Copyrights 2013-2019 on the perl code and the related documentation
by [Mark Overmeer <[email protected]>] for SURFnet bv, The Netherlands. For other contributors see "Changes".
Copyrights 2011-2012 by Keith Grennan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
Releases
5 releases since Debian 9 (Stretch); the text changed 3 times.