OIDC - Link to IdP and authentication configuration Error

OIDC - Link to IdP and authentication configuration Error

by Pedro Crispim -
Number of replies: 0

When I go to https://moodlesite/admin/settings.php?section=authsettingoidc, in Basic Settings, I see a Redirect URI (with https://moodlesite/auth/oidc/ setting that cannot be changed) and, right below, in IdP and authentication, a link to IdP and authentication configuration (that points to https://moodlesite/auth/oidc/manageapplication.php).


If I click on this link, I get a "Missing basic settings" error.

Section error
**More information about this error**


**Debug info:**
Error code: sectionerror


**Stack trace:**
- line 497 of /lib/setuplib.php: moodle_exception thrown
- line 26 of /admin/settings.php: call to print_error()



If I click on More information about this error, I get:


error/admin/sectionerror

The error means that a new admin page 'foo' (the one you're developing right now) is not registered with the Admin menu. It is triggered with the call:

admin_externalpage_setup('foo');


The solution is to add a reference to the page in the appropriate file in admin/settings/XXX.php. Something like:

$ADMIN->add("parent_section", new admin_externalpage('foo', "Foo Admin Component", "$CFG->wwwroot/$CFG->admin/foo.php"));


Important info that might help:

  • I have Moodle 4.0.4+ (Build 20221007)
  • I'm using Boost theme
  • I don't have any other extensions installed behind Office365-Moodle integration full pack of plugins
  • All Server checks (in Admin > Server > Environment) are OK (except for XMLRPC message, but with PHP 8, it should not appear such message because XMLRPC was discontinued)
  • I have "DEVELOPER: extra Moodle debug messages for developers" active in Debugging
  • I use AlmaLinux + SELinux + PHP 8.0 + PostgreSQL 14.5 + Nginx 1.22



I'm stuck here, because I was going step-by-step with documentation in https://docs.moodle.org/400/en/Microsoft_365 but can not go further than point 4.1. of "Plugin auth_oidc configuration - part 1".

Is this a Nginx problem?

I tried setting SELINUX=0 but the problem persists, so I think it's not a SELinux issue.

Can anyone give me some help?


Average of ratings: -