feat: add synchronization for SSH keys with OpenID Connect
Co-authored-by: Kirill Kolmykov <cyberk1ra@ya.ru>
This commit is contained in:
parent
4bc0abac3c
commit
4500757acd
9 changed files with 158 additions and 27 deletions
|
@ -62,7 +62,7 @@ export function initAdminCommon() {
|
|||
}
|
||||
|
||||
function onOAuth2Change(applyDefaultValues) {
|
||||
hideElem('.open_id_connect_auto_discovery_url, .oauth2_use_custom_url');
|
||||
hideElem('.open_id_connect_auto_discovery_url, .oauth2_use_custom_url, .oauth2_attribute_ssh_public_key');
|
||||
for (const input of document.querySelectorAll('.open_id_connect_auto_discovery_url input[required]')) {
|
||||
input.removeAttribute('required');
|
||||
}
|
||||
|
@ -85,6 +85,10 @@ export function initAdminCommon() {
|
|||
}
|
||||
}
|
||||
}
|
||||
const canProvideSSHKeys = document.getElementById(`${provider}_canProvideSSHKeys`);
|
||||
if (canProvideSSHKeys) {
|
||||
showElem('.oauth2_attribute_ssh_public_key');
|
||||
}
|
||||
onOAuth2UseCustomURLChange(applyDefaultValues);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue