Hello everyone,
in a test environment (for example https://test-www.mydomain.com), on CentOS Linux release 7.5, using moodle 3.5.5+, with php 7.2.17, mysql 5.6.15 and apache 2.4.6
after enabling the OAuth2 authentication plugin and configuring the OAuth2 services for Google, Facebook and LinkedIn trying to log in with Facebook I get:
No user information was returned. The OAuth 2 service may be configured incorrectly.
To enable login with Facebook I used the 'Create new Facebook service' button and followed the instructions on https://docs.moodle.org/35/en/OAuth_2_Facebook_service
filling in the fields:
name (Facebook)
client ID (many numbers)
client secret (even more numbers and letters)
Authenticate token requests via HTTP headers: checkbox is disabled
Scopes included in a login request: public_profile email
Scopes included in a login request for offline access: public_profile email
Login domains: https://test-www.mydomain.com
Show on login page: checkbox is enabled
Require email verification: checkbox is disabled
The same thing I did for LikedIn except for:
name (LikedIn)
Scopes included in a login request: r_basicprofile r_emailaddress
Scopes included in a login request for offline access: r_basicprofile r_emailaddress
On the OAuth2 services page the check marks are green for the configured and allow login entries, while Discovery does not have a check mark even though the endpoints and the user field mapping are configured as indicated on the page https://docs.moodle.org/36/en/OAuth_2_LinkedIn_service and the 'System account connected' field has a red cross and when I try to link an account I get:
'The system account was not connected for offline access'.
Conversely, authentication using Google works correctly.
Any suggestions?
Thanks in advance.
Giuseppe