We are using Moodle 3.6.2+ (Build: 20190208) and need to integrate Single Sign on, our provider supports OpenID Connect (OAuth2) but the scopes don't correspond with the default Moodle scopes.
Default scopes: openid profile email we changed this to openid profile mail id_token.
I suppose id_token is the name for openid (Where can i configure this?)
For the endpoints we have configured 2: token_endpoint and authorization_endpoint
The login with our Auth provider works, but after being redirect to Moodle, we get a screen with empty dropdowns and this error below
Debug info:
Error code: Unknown/invalid scope(s): [openid, profile, mail]
$a contents:
Stack trace:
- line 494 of /lib/setuplib.php: moodle_exception thrown
- line 37 of /admin/oauth2callback.php: call to print_error()
Thank you.