summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorGusted <gusted@noreply.codeberg.org>2024-12-29 23:43:28 +0100
committerGusted <gusted@noreply.codeberg.org>2024-12-29 23:43:28 +0100
commitdb7be1a1dba3b55c9dc5f645a0fb65b590456449 (patch)
tree28a4119e2c32bbd6e80097a5c2b1a4898cf79f65 /web_src
parentMerge pull request 'cmd/dump: add option flag to skip repository archives' (#... (diff)
parentMerge branch 'feat/add-oidc-ssh-keys' of codeberg.org:Maks1mS/forgejo into fe... (diff)
downloadforgejo-db7be1a1dba3b55c9dc5f645a0fb65b590456449.tar.xz
forgejo-db7be1a1dba3b55c9dc5f645a0fb65b590456449.zip
Merge pull request 'feat: add synchronization for SSH keys for OpenID Connect' (#6232) from Maks1mS/forgejo:feat/add-oidc-ssh-keys into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6232 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/admin/common.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web_src/js/features/admin/common.js b/web_src/js/features/admin/common.js
index 1a5bd6e490..a42d8261f1 100644
--- a/web_src/js/features/admin/common.js
+++ b/web_src/js/features/admin/common.js
@@ -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);
}