GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::OAuth2::Client(3) User Contributed Perl Documentation Net::OAuth2::Client(3)

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

   # 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"
   );

This module is kept to translate the expired interface into the new interface.

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".

$obj->id()
$obj->secret()
$obj->user_agent()

$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.

Copyrights 2013-2019 on the perl code and the related documentation by [Mark Overmeer <markov@cpan.org>] 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/

2021-09-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.