| 1 |
LinkedIn |
| 2 |
-------- |
| 3 |
|
| 4 |
LinkedIn has become an OpenID Connect compliant provider, avoiding the need for |
| 5 |
a custom OAuth2 implementation. Therefore, the ``linkedin_oauth2`` provider is |
| 6 |
now deprecated. You can setup LinkedIn, like any other OpenID Connect provider, |
| 7 |
as follows: |
| 8 |
|
| 9 |
.. code-block:: python |
| 10 |
|
| 11 |
SOCIALACCOUNT_PROVIDERS = { |
| 12 |
"openid_connect": { |
| 13 |
"APPS": [ |
| 14 |
{ |
| 15 |
"provider_id": "linkedin", |
| 16 |
"name": "LinkedIn", |
| 17 |
"client_id": "<insert-id>", |
| 18 |
"secret": "<insert-secret>", |
| 19 |
"settings": { |
| 20 |
"server_url": "https://www.linkedin.com/oauth", |
| 21 |
}, |
| 22 |
} |
| 23 |
] |
| 24 |
} |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
App registration (get your key and secret here) |
| 29 |
https://www.linkedin.com/secure/developer?newapp= |