From 702d263b004d04aed5f7aae3cc8cbf09c430cff1 Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 23 Nov 2023 10:11:22 +0100 Subject: [PATCH 1/3] add more info on linkedin sign in api --- docs/backends/linkedin.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/backends/linkedin.rst b/docs/backends/linkedin.rst index e17deab4..d1cb0062 100644 --- a/docs/backends/linkedin.rst +++ b/docs/backends/linkedin.rst @@ -1,7 +1,10 @@ LinkedIn ======== -LinkedIn supports only OAuth2. Migration between each type is fairly +Sign In with LinkedIn only support OpenID Connect since August 1, 2023. The previous +OAuth2 has been deprecated. See `LinkedIn OpenID Connect`_ for more details. + +LinkedIn previously supported OAuth2. Migration between each type is fairly simple since the same Key / Secret pair is used for both authentication types. LinkedIn OAuth2 setup is similar to any other OAuth2 service. The auth flow is From 33e57affb89826f089b5b6a39070ef51dba9b64a Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 23 Nov 2023 10:12:05 +0100 Subject: [PATCH 2/3] add link to linkedin openid connect docs --- docs/backends/linkedin.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/backends/linkedin.rst b/docs/backends/linkedin.rst index d1cb0062..84de50d9 100644 --- a/docs/backends/linkedin.rst +++ b/docs/backends/linkedin.rst @@ -59,6 +59,7 @@ App Setup`_ to add a redirect url/callback url. Be sure to set the proper values, otherwise a ``(400) Client Error: Bad Request`` might be returned by their service. +.. _Linkedin OpenID Connect: https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2 .. _LinkedIn fields selectors: https://docs.microsoft.com/en-us/linkedin/shared/references/v2/profile/lite-profile .. _LinkedIn Scopes: https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin .. _LinkedIn Developer Network: https://www.linkedin.com/secure/developer From 72601c798c555aa679d6430caffa782008eb28fb Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 23 Nov 2023 10:13:36 +0100 Subject: [PATCH 3/3] add docs section for linkedin openid connect with key and secret settings --- docs/backends/linkedin.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/backends/linkedin.rst b/docs/backends/linkedin.rst index 84de50d9..b6e288c0 100644 --- a/docs/backends/linkedin.rst +++ b/docs/backends/linkedin.rst @@ -11,6 +11,13 @@ LinkedIn OAuth2 setup is similar to any other OAuth2 service. The auth flow is explained on `LinkedIn Developers`_ docs. First you will need to register an app att `LinkedIn Developer Network`_. +OpenID Connect +-------------- + +- Fill the application key and secret in your settings:: + + SOCIAL_AUTH_LINKEDIN_OPENIDCONNECT_KEY = '' + SOCIAL_AUTH_LINKEDIN_OPENIDCONNECT_SECRET = '' OAuth2 ------