Skip to content

Commit

Permalink
bug fix on IdP and authentication configuration page UI settings avai…
Browse files Browse the repository at this point in the history
…lability
  • Loading branch information
weilai-irl committed Mar 7, 2024
1 parent e4400f6 commit 356d71d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions auth/oidc/js/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,17 @@ M.auth_oidc.init = function(Y, idptype_ms, authmethodsecret, authmethodcertifica

$clientauthmethod.change(function() {
if ($(this).val() == authmethodcertificate) {
$clientcert.prop('disabled', false);
$clientprivatekey.prop('disabled', false);
$clientprivatekeyfile.prop('disabled', false);
$clientcertfile.prop('disabled', false);
if ($clientcertsource.val() == 'file') {
$clientcert.prop('disabled', true);
$clientprivatekey.prop('disabled', true);
$clientprivatekeyfile.prop('disabled', false);
$clientcertfile.prop('disabled', false);
} else {
$clientcert.prop('disabled', false);
$clientprivatekey.prop('disabled', false);
$clientprivatekeyfile.prop('disabled', true);
$clientcertfile.prop('disabled', true);
}
$clientcertpassphrase.prop('disabled', false);
$clientcertsource.prop('disabled', false);
} else {
Expand Down

0 comments on commit 356d71d

Please sign in to comment.