Mojolicious::Plugin::Web::Auth::Site::LinkedIn - LinkedIn OAuth Plugin for Mojolicious::Plugin::Web::Auth
version 0.05
# Mojolicious $self->plugin('Web::Auth', module => 'LinkedIn', key => 'LinkedIn consumer key', secret => 'LinkedIn consumer secret', on_finished => sub { my ( $c, $access_token, $email_info ) = @_; ... }, on_error => sub { my ( $c, $error ) = @_; ... }, ); # Mojolicious::Lite plugin 'Web::Auth', module => 'LinkedIn', key => 'LinkedIn consumer key', secret => 'LinkedIn consumer secret', on_finished => sub { my ( $c, $access_token, $email_info ) = @_; ... }; # default authentication endpoint: /auth/linkedin/authenticate # default callback endpoint: /auth/linkedin/callback
This module adds LinkedIn support to Mojolicious::Plugin::Web::Auth.
The only extra URL option is the user_more_info_url which the user can use to do a Mojo::UserAgent call to with the access token as a parameter, to get the other info such as profile image and first or last name. This URL can also be modified by the user to retrieve extra fields. For more details refer to the LinkedIn API.
user_more_info_url
Vikas N Kumar <vikas@cpan.org>
This software is copyright (c) 2019 by Vikas N Kumar.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Mojolicious::Plugin::Web::Auth::Site::LinkedIn, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Web::Auth::Site::LinkedIn
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Web::Auth::Site::LinkedIn
For more information on module installation, please visit the detailed CPAN module installation guide.