View on
MetaCPAN
Mark Overmeer > Net-OAuth2 > Net::OAuth2::Client

Download:
Net-OAuth2-0.64.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  2
View/Report Bugs
Module Version: 0.64   Source  

NAME ^

Net::OAuth2::Client - client for OAuth2 access, deprecated interface

SYNOPSIS ^

   # This module provides the deprecated interface
   my $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.50
   my $client = Net::OAuth2::Profile::WebServer->new(
       client_id     => $client_id,
       client_secret => $client_secret,
       site          => $site
       redirect_uri  => "$site/auth/facebook/callback"
   );

DESCRIPTION ^

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 %options to be used when web_server() creates a profile.

The $id will be translated into OPTION client_id, and $secret to 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 %options passed here.

$obj->web_server(%options)

Create a Net::OAuth2::Profile::WebServer object, based on all options passed with new(), overruled/extended by the %options passed here.

SEE ALSO ^

This module is part of Net-OAuth2 distribution version 0.64, built on March 21, 2018. Website: http://perl.overmeer.net/CPAN/.

COPYRIGHTS ^

Copyrights 2013-2018-2018 on the perl code and the related documentation by [Mark Overmeer <markov@cpan.org>] for SURFnet bv, The Netherlands. For other contributors see ChangeLog.

Copyrights 2011-12 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/

syntax highlighting: