-
Functional Test
-
Critical
-
Original - DO NOT REPORT TEST RESULTS HERE
The goal of this test is to verify that an admin can enable Linkedin as an SSO provider and that it can be used for users to log in in Moodle.
Requirements
- You'll need a public site
- You can use the QA site or make your site public using ngrok
- You'll need admin access.
- If you are using the QA site, you can ask for credentials in the QA chat room on Matrix or Telegram
- Setup a linkedin following the docs, go to https://www.linkedin.com/developers/ and create a "Moodle 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
Moodle setup and testing
- Login as admin
- Go to Site admin > Plugins > Authentication and enable the "OAuth2" authentication plugin.
- Go to Site admin > Server > OAuth 2 Services and 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 and Verify:
- You see the service has a tick under the "Login" and "Discovery" columns
- Logout and 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.
- is a QA test written for
-
MDL-79181 Sign in with LinkedIn (v1) is deprecated
- Closed