You are here

README.txt in Social Auth LinkedIn 8

Same filename and directory in other branches
  1. 8.2 README.txt
SOCIAL AUTH LINKEDIN MODULE

INTRODUCTION
------------

Social Auth LinkedIn Module is a LinkedIn Authentication integration for Drupal.
It is based on the Social Auth Google and Social API projects, as well as in the
LinkedIn PHP Library developed by ashwinks

https://github.com/ashwinks/PHP-LinkedIn-SDK

It adds to the site:
* A new url: /user/login/linkedin
* A settings form on /admin/config/social-api/social-auth/linkedin page
* A LinkedIn Logo in the Social Auth Login block.

REQUIREMENTS
------------

This module requires the following modules:

 * Social Auth (https://drupal.org/project/social_auth)
 * Social API (https://drupal.org/project/social_api)

HOW IT WORKS
------------

User can click on the LinkedIn logo on the Social Auth Login block
You can also add a button or link anywhere on the site that points
to /user/login/linkedin, so theming and customizing the button or link
is very flexible.

When the user opens the /user/login/linkedin link, it automatically takes
user to LinkedIn for authentication. LinkedIn then returns the user to
Drupal site. If we have an existing Drupal user with the same email address
provided by LinkedIn, that user is logged in. Otherwise a new Drupal user is
created.

CREATE LINKEDIN APPLICATION
---------------

Go to https://www.linkedin.com/developer/apps and create a new application.
After creating it, make sure both r_basicprofile and r_emailaddress permissions
are checked.

The Client ID and Client Secret values will be required when configuring the
module

Your Oauth 2.0 authorized redirect url will be
[your_base_url]/user/login/linkedin/callback


INSTALL SOCIAL AUTH LINKEDIN
-----------------------------

Install module using composer to take care of dependencies

composer require "drupal/social_auth_linkedin:~1.0"

Activate the Social Auth LinkedIn module and configure the Client ID and Client
Secret acquired using the values acquired from LinkedIn.

The LinkedIn Auth button should now be appearing in the Social Auth Block


SUPPORT REQUESTS
----------------

Before posting a support request, carefully read the installation
instructions provided in module documentation page.

Before posting a support request, check Recent log entries at
admin/reports/dblog

When posting a support request, please inform if you were able to see any errors
in Recent log entries.

RUNNING TESTS
-----------------

Running PHPUnit tests

cd core
 ../vendor/bin/phpunit ../modules/contrib/social_auth_linkedin/tests/src/Unit/LinkedinAuthManagerTest.php

Running Functional Tests

php core/scripts/run-tests.sh --browser --verbose --class "Drupal\Tests\social_auth_linkedin\Functional\LinkedinAuthTest"

File

README.txt
View source
  1. SOCIAL AUTH LINKEDIN MODULE
  2. INTRODUCTION
  3. ------------
  4. Social Auth LinkedIn Module is a LinkedIn Authentication integration for Drupal.
  5. It is based on the Social Auth Google and Social API projects, as well as in the
  6. LinkedIn PHP Library developed by ashwinks
  7. https://github.com/ashwinks/PHP-LinkedIn-SDK
  8. It adds to the site:
  9. * A new url: /user/login/linkedin
  10. * A settings form on /admin/config/social-api/social-auth/linkedin page
  11. * A LinkedIn Logo in the Social Auth Login block.
  12. REQUIREMENTS
  13. ------------
  14. This module requires the following modules:
  15. * Social Auth (https://drupal.org/project/social_auth)
  16. * Social API (https://drupal.org/project/social_api)
  17. HOW IT WORKS
  18. ------------
  19. User can click on the LinkedIn logo on the Social Auth Login block
  20. You can also add a button or link anywhere on the site that points
  21. to /user/login/linkedin, so theming and customizing the button or link
  22. is very flexible.
  23. When the user opens the /user/login/linkedin link, it automatically takes
  24. user to LinkedIn for authentication. LinkedIn then returns the user to
  25. Drupal site. If we have an existing Drupal user with the same email address
  26. provided by LinkedIn, that user is logged in. Otherwise a new Drupal user is
  27. created.
  28. CREATE LINKEDIN APPLICATION
  29. ---------------
  30. Go to https://www.linkedin.com/developer/apps and create a new application.
  31. After creating it, make sure both r_basicprofile and r_emailaddress permissions
  32. are checked.
  33. The Client ID and Client Secret values will be required when configuring the
  34. module
  35. Your Oauth 2.0 authorized redirect url will be
  36. [your_base_url]/user/login/linkedin/callback
  37. INSTALL SOCIAL AUTH LINKEDIN
  38. -----------------------------
  39. Install module using composer to take care of dependencies
  40. composer require "drupal/social_auth_linkedin:~1.0"
  41. Activate the Social Auth LinkedIn module and configure the Client ID and Client
  42. Secret acquired using the values acquired from LinkedIn.
  43. The LinkedIn Auth button should now be appearing in the Social Auth Block
  44. SUPPORT REQUESTS
  45. ----------------
  46. Before posting a support request, carefully read the installation
  47. instructions provided in module documentation page.
  48. Before posting a support request, check Recent log entries at
  49. admin/reports/dblog
  50. When posting a support request, please inform if you were able to see any errors
  51. in Recent log entries.
  52. RUNNING TESTS
  53. -----------------
  54. Running PHPUnit tests
  55. cd core
  56. ../vendor/bin/phpunit ../modules/contrib/social_auth_linkedin/tests/src/Unit/LinkedinAuthManagerTest.php
  57. Running Functional Tests
  58. php core/scripts/run-tests.sh --browser --verbose --class "Drupal\Tests\social_auth_linkedin\Functional\LinkedinAuthTest"