MDL-79181 core: update LinkedIn OAuth template to use OIDC
commit35e8d7517fd1924de030ddd213c082bca5577444
authorJake Dallimore <jake@moodle.com>
Mon, 28 Aug 2023 09:08:13 +0000 (28 17:08 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 11 Sep 2023 02:42:35 +0000 (11 10:42 +0800)
tree1a5ccb47a93f5fa98f3d9993f46d0b504eb7e0cc
parentd1bc94905e2d4c07170b2e25bad3278e39121fb7
MDL-79181 core: update LinkedIn OAuth template to use OIDC

The old method (sign in with linkedin) is deprecated:
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin

This replaces this with the new method:
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2

This is not entirely OIDC compliant, however. The well known
openid-configuration isn't present at the issuer root and the 'locale'
claim contains an object instead of a string. These are worked around.
lib/classes/oauth2/client/linkedin.php
lib/classes/oauth2/service/linkedin.php