Skip to content

Commit

Permalink
bug fix in existing configuration check in upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
weilai-irl committed Jun 30, 2021
1 parent 5f6519b commit 0b53332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/oidc/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function xmldb_auth_oidc_upgrade($oldversion) {
set_config('authendpoint', $authorizationendpoint, 'auth_oidc');
}

$tokenendpoint = get_string('auth_oidc', 'tokenendpoint');
$tokenendpoint = get_config('auth_oidc', 'tokenendpoint');
if ($tokenendpoint == 'https://login.microsoftonline.com/common/oauth2/token') {
$tokenendpoint = str_replace('common', $aadtenant, $tokenendpoint);
set_config('tokenendpoint', $tokenendpoint, 'auth_oidc');
Expand Down

0 comments on commit 0b53332

Please sign in to comment.