|
|
@ -84,7 +84,7 @@ export function initAdminCommon() { |
|
|
|
hideElem($('.oauth2_use_custom_url_field')); |
|
|
|
hideElem($('.oauth2_use_custom_url_field')); |
|
|
|
$('.oauth2_use_custom_url_field input[required]').removeAttr('required'); |
|
|
|
$('.oauth2_use_custom_url_field input[required]').removeAttr('required'); |
|
|
|
|
|
|
|
|
|
|
|
if ($('#oauth2_use_custom_url').is(':checked')) { |
|
|
|
if (document.getElementById('oauth2_use_custom_url')?.checked) { |
|
|
|
for (const custom of ['token_url', 'auth_url', 'profile_url', 'email_url', 'tenant']) { |
|
|
|
for (const custom of ['token_url', 'auth_url', 'profile_url', 'email_url', 'tenant']) { |
|
|
|
if (applyDefaultValues) { |
|
|
|
if (applyDefaultValues) { |
|
|
|
$(`#oauth2_${custom}`).val($(`#${provider}_${custom}`).val()); |
|
|
|
$(`#oauth2_${custom}`).val($(`#${provider}_${custom}`).val()); |
|
|
@ -98,7 +98,7 @@ export function initAdminCommon() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onEnableLdapGroupsChange() { |
|
|
|
function onEnableLdapGroupsChange() { |
|
|
|
toggleElem($('#ldap-group-options'), $('.js-ldap-group-toggle').is(':checked')); |
|
|
|
toggleElem($('#ldap-group-options'), $('.js-ldap-group-toggle')[0].checked); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// New authentication
|
|
|
|
// New authentication
|
|
|
|