| 1 |
LinkedIn |
| 2 |
======== |
| 3 |
|
| 4 |
============== ===== ======== |
| 5 |
Authentication Users Password |
| 6 |
============== ===== ======== |
| 7 |
✔ |
| 8 |
============== ===== ======== |
| 9 |
|
| 10 |
Presentation |
| 11 |
------------ |
| 12 |
|
| 13 |
`LinkedIn <https://www.linkedin.com/>`__ is a professional social |
| 14 |
network. It uses `OAuth2 <http://en.wikipedia.org/wiki/OAuth2>`__ |
| 15 |
protocol to allow applications to reuse its own authentication process |
| 16 |
(see https://developer.linkedin.com/docs/oauth2). |
| 17 |
|
| 18 |
You need to register a new application on LinkedIn to get an application |
| 19 |
ID and a secret. See https://www.linkedin.com/developer/apps/ on how to |
| 20 |
do that. |
| 21 |
|
| 22 |
Configuration |
| 23 |
------------- |
| 24 |
|
| 25 |
In Manager, go in ``General Parameters`` > ``Authentication modules`` |
| 26 |
and choose LinkedIn for authentication module. |
| 27 |
|
| 28 |
Then, go in ``LinkedIn parameters``: |
| 29 |
|
| 30 |
- **Authentication level**: authentication level for this module. |
| 31 |
- **Client ID**: the application ID you get |
| 32 |
- **Client secret**: the corresponding secret |
| 33 |
- **Searched fields** (deprecated): Fields requested on People endpoint |
| 34 |
in v1, no more used in v2 API |
| 35 |
- **Field containing user identifier**: Field that will be used as main |
| 36 |
user identifier in LL::NG, usually ``id`` (LinkedIn numeric |
| 37 |
identifer) or ``emailAddress``. |
| 38 |
- **Scope**: OAuth 2.0 scopes, use ``r_liteprofile`` to get first name |
| 39 |
and last name, and ``r_emailaddress`` to get email. |
| 40 |
|
| 41 |
|
| 42 |
.. tip:: |
| 43 |
|
| 44 |
Collected fields are stored in session in ``linkedIn_`` |
| 45 |
keys |
| 46 |
|
| 47 |
|
| 48 |
.. attention:: |
| 49 |
|
| 50 |
Browser implementations of formAction directive are |
| 51 |
inconsistent (e.g. Firefox doesn't block the redirects whereas Chrome |
| 52 |
does). Administrators may have to modify formAction value with wildcard |
| 53 |
likes \*. |
| 54 |
|
| 55 |
In Manager, go in : |
| 56 |
|
| 57 |
``General Parameters`` > ``Advanced Parameters`` > ``Security`` > |
| 58 |
``Content Security Policy`` > ``Form destination`` |