-
-
27 Sep 2021 21:22:55 UTC
- Distribution: Net-OAuth2
- Module version: 0.67
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (686 / 0 / 0)
- Kwalitee
Bus factor: 2- 54.06% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (21.92KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Encode
- HTTP::Request
- HTTP::Response
- HTTP::Status
- JSON::MaybeXS
- LWP::UserAgent
- MIME::Base64
- Scalar::Util
- Test::More
- URI
- constant
- strict
- warnings
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Why not adopt me?
This distribution is up for adoption! If you're interested then please contact the PAUSE module admins via email.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 toclient_secret
.
Accessors
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.
COPYRIGHTS
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/
Module Install Instructions
To install Net::OAuth2, copy and paste the appropriate command in to your terminal.
cpanm Net::OAuth2
perl -MCPAN -e shell install Net::OAuth2
For more information on module installation, please visit the detailed CPAN module installation guide.