Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79181

Sign in with LinkedIn (v1) is deprecated

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-79181-401
    • MDL-79181-402
    • MDL-79181-master
    • Hide
      1. Make your site public (e.g. ngrok, etc)
      2. Per the docs (https://docs.moodle.org/402/en/OAuth_2_LinkedIn_service)
        go to https://www.linkedin.com/developers/ and create a "Moodle 4.3 dev" app
        • Notice you can't see "Sign in with Linkedin" under products any more
        • Request access / add the product "Sign in with LinkedIn using OpenID Connect" instead
        • Make sure you've set the "Authorized redirect URLs for your app" to: YOURSITE/admin/oauth2callback.php
      3. Now, go to your Moodle site
      4. Login as admin
      5. Go to "Site admin > Plugins > Authentication" and enable the "OAuth2" authentication plugin
      6. Go to "Site admin > Server > OAuth 2 Services"
      7. Click the "LinkedIn" button
      8. Enter your Client ID and Client secret (You'll find these on the 'Auth' tab of your LinkedIn dev portal app
      9. Uncheck "Require email verification" (We don't need this for testing)
      10. Check the "I understand that disabling email verification can be a security issue" box to confirm
      11. Save changes
      12. Verify:
        • You see the service has a tick under the "Login" column
        • You see the service has a tick under the "Discovery" column
      13. Logout
      14. Go to the site login page
      15. Verify you see "LinkedIn" listed there as an SSO provider
      16. Click the "LinkedIn" SSO icon/button
      17. Login to LinkedIn if needed
      18. Verify you see an auth request/consent page
      19. Click to continue to link the app
      20. Verify you're logged in to Moodle
      21. View your user profile
      22. Verify it contains the details of your LinkedIn account
      Show
      Make your site public (e.g. ngrok, etc) Per the docs ( https://docs.moodle.org/402/en/OAuth_2_LinkedIn_service ) go to https://www.linkedin.com/developers/ and create a "Moodle 4.3 dev" app Notice you can't see "Sign in with Linkedin" under products any more Request access / add the product "Sign in with LinkedIn using OpenID Connect" instead Make sure you've set the "Authorized redirect URLs for your app" to: YOURSITE/admin/oauth2callback.php Now, go to your Moodle site Login as admin Go to "Site admin > Plugins > Authentication" and enable the "OAuth2" authentication plugin Go to "Site admin > Server > OAuth 2 Services" Click the "LinkedIn" button Enter your Client ID and Client secret (You'll find these on the 'Auth' tab of your LinkedIn dev portal app Uncheck "Require email verification" (We don't need this for testing) Check the "I understand that disabling email verification can be a security issue" box to confirm Save changes Verify : You see the service has a tick under the "Login" column You see the service has a tick under the "Discovery" column Logout Go to the site login page Verify you see "LinkedIn" listed there as an SSO provider Click the "LinkedIn" SSO icon/button Login to LinkedIn if needed Verify you see an auth request/consent page Click to continue to link the app Verify you're logged in to Moodle View your user profile Verify it contains the details of your LinkedIn account
    • 2
    • Team Hedgehog 2023 Sprint 3.2

      On https://developer.linkedin.com/ 

      Under My Apps -> $YourApp -> Products

      "Sign In with LinkedIn"(https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin) is now replaced by "Sign In with LinkedIn using OpenID Connect" (https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2)

      The preconfigured Linkedin OAuth login in Moodle 4.1 no longer work.

      This documentation is also outdated: https://docs.moodle.org/401/en/OAuth_2_LinkedIn_service

      And OAuth for LinkedIn does not currently work out of the box.

      Update:
      Per comments from Lars below, it seems that existing integrations using the now-deprecated "Sign in with LinkedIn" will continue to work (for how long is something that's yet TBD). Any site trying to configure LinkedIn SSO for the first time, however, will be unable to do so until we resolve this.

            jaked Jake Dallimore
            nettkursxyz Lars Aamodt
            Raquel Ortega Raquel Ortega
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            2 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 31 minutes
                2h 31m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.