Skip to content

Add missing auth_settings_validation_error lang string - #3433

Merged
Lai Wei (weilai-irl) merged 2 commits into
MOODLE_501_STABLEfrom
wip-136768-m501
Sep 2, 2026
Merged

Lai Wei (weilai-irl) merged 2 commits into
MOODLE_501_STABLEfrom
wip-136768-m501

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

auth_oidc_validate_auth_settings() in lib.php (added in a13728f, 'Re-organise configuration pages for auth_oidc and local_o365...') calls get_string('auth_settings_validation_error', 'auth_oidc') to build the notification shown when settings validation fails, but the corresponding lang string was never added.

Cherry-picked from microsoft/moodle-auth_oidc#70
(2c8b686ece4dba3a5a4a9ea47e5382c25291a54c)

auth_oidc_validate_auth_settings() in lib.php (added in a13728f, 'Re-organise
configuration pages for auth_oidc and local_o365...') calls
get_string('auth_settings_validation_error', 'auth_oidc') to build the
notification shown when settings validation fails, but the corresponding
lang string was never added.

Cherry-picked from microsoft/moodle-auth_oidc#70
(2c8b686ece4dba3a5a4a9ea47e5382c25291a54c)
Copilot AI lite review requested due to automatic review settings August 25, 2026 14:32
@weilai-irl Lai Wei (weilai-irl) self-assigned this Aug 25, 2026
@weilai-irl Lai Wei (weilai-irl) added this to the 2026-03 milestone Aug 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the missing English language string used by auth_oidc_validate_auth_settings() when building the admin notification shown on invalid/contradictory OpenID Connect configuration, preventing a missing-string placeholder from being displayed.

Changes:

  • Add auth_settings_validation_error to auth_oidc English language pack to match existing get_string() usage.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Bring in line with wip-136768-m405: drop the auth_settings_validation_error
added directly after auth_oidcdescription (from microsoft/moodle-auth_oidc#70)
and the stale error_masked_secret_not_changed wording that predates the
"Change" checkbox UX, replacing both with the current wording already used
on m405, in the error-strings block after error_invalid_custom_claim.

Also removes a pre-existing upstream duplicate,
errorauthdisconnectinvalidmethod (added twice, identically, in
6f8e952 back in 2015). Harmless since both copies had the same
value, but redundant.
Comment thread auth/oidc/lang/en/auth_oidc.php Outdated

$string['pluginname'] = 'OpenID Connect';
$string['auth_oidcdescription'] = 'The OpenID Connect authentication plugin provides single-sign-on functionality using configurable IdP.';
$string['auth_settings_validation_error'] = 'There are problems with the OpenID Connect settings:';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@weilai-irl
Lai Wei (weilai-irl) merged commit d2d9995 into MOODLE_501_STABLE Sep 2, 2026
55 checks passed
@weilai-irl
Lai Wei (weilai-irl) deleted the wip-136768-m501 branch September 2, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants