diff --git a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts index 4005daeeb..bea1cfe27 100644 --- a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts @@ -192,7 +192,11 @@ export class OAuth2ProviderFormPage extends Form { hasKey: "true", }).then(keys => { return keys.results.map(key => { - return html``; + let selected = this.provider?.rsaKey === key.pk; + if (keys.results.length === 1) { + selected = true; + } + return html``; }); }), html``)}